Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticationApi

Hierarchy

  • AuthenticationApi

Index

Constructors

constructor

Properties

Private apiContext

apiContext: SeatersApiContext

Methods

createStoredToken

  • Create a new authentication token that can be stored and is valid for a longer time for the authenticated user.

    Parameters

    Returns Promise<AuthToken>

emailPasswordLogin

  • Login using email-password credentials

    Parameters

    Returns Promise<AuthenticationSuccess>

getStoredTokens

  • Get all stored tokens for authenticated user

    Returns Promise<AuthToken[]>

loginWithOAuthCode

  • Obtain a seaters session by passing an oauth code for a given provider Examples that should work are github, facebook. For your specific provider name please refer to a seaters developer.

    Parameters

    • oauthProvider: string
    • code: string

    Returns Promise<AuthenticationSuccess>

refreshTokenLogin

resetEmail

  • Parameters

    Returns Promise<void>

resetPassword

  • Parameters

    Returns Promise<void>

signup

  • Signs up a new user

    Parameters

    Returns Promise<UserData>

signupAnonymous

  • Signs up a new user without firstname / lastname / password

    Parameters

    Returns Promise<AuthenticationSuccess>

storedTokenLogin

  • Login using long-term stored token

    Parameters

    Returns Promise<AuthenticationSuccess>

updatePassword

validate

  • Validates an email or phone number and marks it as confirmed

    see

    SeatersApiException

    Parameters

    • input: ValidationData

      Either the email or the phone and the confirmation code

    Returns Promise<Fan>

    Promise that resolves with the validated user or rejects with a SeatersApiException

Generated using TypeDoc