Improvements
- Added
AuthTokenType
to Enum Type
export enum AuthTokenType {
SESSION_TOKEN = 'session_token',
ACCESS_TOKEN = 'access_token',
}
- Added
authTokenType
parameter toauthenticate()
(Default Value: AuthTokenType.SESSION_TOKEN)
// using AccessToken
sb.authenticate('userId', 'access token', AuthTokenType.ACCESS_TOKEN);
// using SessionToken
sb.authenticate('userId', 'session token');
or
sb.authenticate('userId', 'session token', AuthTokenType.SESSION_TOKEN);