Default Adapter for Auth

Description

This class is used to define the default adapter for Auth. This adapter uses the REST SDK to communicate with Auth functionality.

Implements

Constructors

Properties

authServiceEndpoint: string
checkTokenPath: string
deleteRefreshTokensForUserPath: string
generateOnetimeTokenPath: string
internalToken: string
invalidateTokenPath: string
restoreTokenPath: string
DEFAULT_CHECK_TOKEN_PATH: "/check-token" = '/check-token'
DEFAULT_DELETE_REFRESH_TOKENS_FOR_USER_PATH: "/users/:userId/refreshTokens" = '/users/:userId/refreshTokens'
DEFAULT_GENERATE_ONETIME_TOKEN_PATH: "/generate-onetime-token" = '/generate-onetime-token'
DEFAULT_INVALIDATE_TOKEN_PATH: "/invalidate-onetime-token" = '/invalidate-onetime-token'
DEFAULT_RESTORE_TOKEN_PATH: "/restore-onetime-token" = '/restore-onetime-token'

Auth

  • API for checking token

    Parameters

    Returns Promise<Record<string, unknown>>

    Description

    This API is used to check token from Auth service to see if it is valid.

  • API for deleting refresh tokens for user

    Parameters

    • args: {
          userId: string;
      }

      User id to delete refresh tokens for.

      • userId: string
    • Optional context: RequestContext

    Returns Promise<void>

    Object containing the result of the operation.

    Description

    This API is used to delete refresh tokens for user from Auth service.

Generated using TypeDoc