Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Auth

Hierarchy

  • Auth

Index

Constructors

constructor

  • new Auth(gateway: Gateway, accessToken: string | null, refreshToken: string): Auth

Properties

accessToken

accessToken: string | null

gateway

gateway: Gateway

refreshToken

refreshToken: string

Methods

refresh

  • refresh(): Promise<Auth>

startSession

  • startSession(): Promise<object>

Static fromUrl

Static login

  • login(apiRoot: string, accessToken: string, countryCode: string, langCode: string): Promise<any>
  • Parameters

    • apiRoot: string
    • accessToken: string
    • countryCode: string
    • langCode: string

    Returns Promise<any>

Static oauth2Signature

  • oauth2Signature(message: string, secret: string): string
  • Parameters

    • message: string
    • secret: string

    Returns string

Static refreshAuth

  • refreshAuth(oauthRoot: string, refreshToken: string): Promise<string>
  • Parameters

    • oauthRoot: string
    • refreshToken: string

    Returns Promise<string>

Generated using TypeDoc