Skip to main content

Function: loginService()

loginService(client): object

Defined in: service/LoginService.ts:15

Service for handling user authentication and login operations

Parameters

client

GraphQLClient

Returns

authenticate()

authenticate(input): Promise<Login>

Creates authentication claims for a user *

Parameters

input

CreateAuthenticationInput

Authentication input data *

Returns

Promise<Login>

Promise<Login> Authentication response

exchangeRefreshToken()

exchangeRefreshToken(variables): Promise&lt;RefreshTokenResponse>

Exchanges a refresh token for a new access token *

Parameters

variables

ExchangeRefreshTokenVariables

The refresh token to exchange *

Returns

Promise&lt;RefreshTokenResponse>

Promise<RefreshTokenResponse> New token response with fresh access token

login()

login(input): Promise&lt;Login>

Authenticates a user with credentials *

Parameters

input

LoginInput

Login credentials input *

Returns

Promise&lt;Login>

Promise<Login> Login response with user data