Platform SDK
Platform SDK provides a standard way to integrate the client with Logto service in the specific platform and accelerates the integration process.
- Platform SDK encapsulates the core with platform-specific implementation.
- Platform SDK should provide basic types that make SDK easier to use.
- Platform SDK should be exported as a class named
LogtoClient
.
Basic typesβ
LogtoConfig
Name | Type | Required | Default Value | Notes |
---|---|---|---|---|
endpoint | string | β | The OIDC service endpoint. | |
appId | string | β | The application id comes from the application we registered in Logto Service. | |
scopes | string[] | [openid, offline_access, profile] | This field always contains openid , offline_access and profile . | |
resources | string[] | The protected resource indicators we want to use. | ||
prompt | string | consent | The prompt value used in generateSignInUri . | |
usingPersistStorage | boolean | true | Decide to store credentials on the local machine or not. |
*Notes
- You can extend this
LogtoConfig
if you need to. usingPersistStorage
is only provided in client SDKs. E.g., iOS, Android, and SPA.
AccessToken
Name | Type | Notes |
---|---|---|
token | string | |
scope | string | |
expiresAt | number | Timestamp in seconds |