SeleID

Articles

The SeleID SDK: a typed client for sign-in and sessions

The SeleID client SDK for TypeScript: what it does, which runtimes it supports and what is still planned.

Published by SeleTech

Short answer

The SeleID SDK is a dependency-free TypeScript library that handles the SeleID parts of an app: reading the sign-in configuration, exchanging an authorization code for tokens, refreshing tokens safely and checking whether a session is still valid. It is coming soon.

It runs on serverless and edge runtimes, Node 22 and later, and React Native or Expo. Every call has a hard timeout and a typed failure, so a slow network never leaves your app hanging, and every response is validated against a schema. Tokens are kept in storage you pass in.

Some pieces are planned rather than built: an authorize-URL and PKCE helper, Kotlin and Swift SDKs, and a hosted sandbox. Until native SDKs exist, Android and iOS apps use the standard protocol with an OpenID library. It is coming soon.

Frequently asked questions

Is the SDK published?

It is coming soon. Outside apps will be able to sign in with SeleID when Continue with SeleID opens.

Which platforms does it support?

TypeScript on serverless and edge runtimes, Node 22 and later, and React Native or Expo. Kotlin and Swift SDKs are planned.

What happens if the network is slow?

Every call has a hard timeout and returns a typed error, so your app can show a clear message instead of hanging.

Related