Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • OAuth

Index

Constructors

  • new OAuth(client: AxiosInstance, clientId: number, clientSecret: string): OAuth
  • Creates an instance of OAuth.

    memberof

    OAuth

    Parameters

    • client: AxiosInstance

      configured axios client for proper backend

    • clientId: number

      client id

    • clientSecret: string

      client secret

    Returns OAuth

Properties

accessToken: string
expiry: Date

Methods

  • getAccessToken(): Promise<string>
  • Get access token from PayU service

    throws

    {AuthenticationError}

    memberof

    Auth

    Returns Promise<string>

    • access token

Generated using TypeDoc