mirror of
https://github.com/bourquep/mysa-js-sdk.git
synced 2026-02-04 09:41:07 +00:00
feat: Initial commit
This commit is contained in:
16
src/api/MysaSession.ts
Normal file
16
src/api/MysaSession.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Interface representing an authenticated Mysa user session.
|
||||
*
|
||||
* Contains the authentication tokens and user information required to make authorized API calls to the Mysa service.
|
||||
* These tokens are typically obtained through the login process and used for subsequent API requests.
|
||||
*/
|
||||
export interface MysaSession {
|
||||
/** The username/email address of the authenticated user */
|
||||
username: string;
|
||||
/** JWT identity token containing user identity information */
|
||||
idToken: string;
|
||||
/** JWT access token used for authorizing API requests */
|
||||
accessToken: string;
|
||||
/** JWT refresh token used to obtain new access tokens when they expire */
|
||||
refreshToken: string;
|
||||
}
|
||||
Reference in New Issue
Block a user