AccessToken Class

Beta

Token issued by DelegationSecureTokenService for API access

Methods

Name Description
constructor(jwt: string, startsAt?: Date, expiresAt?: Date, userInfo?: UserInfo): AccessToken Create a new AccessToken given a JWT (Jason Web Token)  
toTokenString(includePrefix: IncludePrefix = IncludePrefix.Yes): string Convert this AccessToken to a string that can be passed across the wire Beta
fromJson(jsonObj: any): AccessToken Static Creates a strongly typed AccessToken object from an untyped JSON with the same properties as AccessToken Beta
fromTokenString(tokenStr: string): AccessToken Static Create an AccessToken from a string that's typically passed across the wire Beta

Defined in

Last Updated: 29 April, 2020