import { TokenCredential , AccessToken , GetTokenOptions } from "@azure/core-http" ; export class SimpleTokenCredential implements TokenCredential { /**
     * The raw token string.  Can be changed when the token needs to be updated.
     */ public token : string ; /**
     * The Date at which the token expires.  Can be changed to update the expiration time.
     */ public expiresOn : number ; param { string } token constructor ( token , expiresOn ? ) { this . token = token ; this . expiresOn = expiresOn ? expiresOn . getTime ( ) : Date . now ( ) + 60 * 60 * 1000 ; } param _scopes param _options returns { AccessToken } async getToken ( _scopes , _options ? ) { return { token : this . token , expiresOnTimestamp : this . expiresOn } ; } }