Core SDK convention
Basic conventions
- The core should contain platform-independent functions only.
- The core should be named as
{$language}
and under the repository root directory. E.g.,logto/js/js
,logto/kotlin/kotlin
. - The core package should be named as
{$language}
under Logto scope. E.g.,@logto/js
,io.logto.sdk:kotlin
.
Basic requirements
Any core SDK should contain:
- Types
- Utility functions
- Core functions
Types
OidcConfigResponse
The configuration of the identity provider, which can be retrieved via /oidc/.well-known/openid-configuration
API.
Properties
Name | Type |
---|---|
authorizationEndpoint | string |
tokenEndpoint | string |
endSessionEndpoint | string |
revocationEndpoint | string |
jwksUri | string |
issuer | string |
CodeTokenResponse
The response data of /oidc/token
(by authorization code).
Properties
Name | Type | Required |
---|---|---|
accessToken | string |