Skip to content

v4.16.3

Latest
Compare
Choose a tag to compare
@sendbird-sdk-deployment sendbird-sdk-deployment released this 16 Jan 05:11

Improvements

  • Added AuthTokenType to Enum Type
 export enum AuthTokenType {
  SESSION_TOKEN = 'session_token',
  ACCESS_TOKEN = 'access_token',
 }
  • Added authTokenType parameter to authenticate() (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);