Skip to main content

Class: AuthJWT

auth-jwt.AuthJWT

Implements

Constructors

constructor

new AuthJWT(storage, options)

Parameters

NameType
storageIStorageEngine
optionsIAuthJWTOptions

Defined in

packages/convostack-auth-jwt/dist/index.d.ts:16

Methods

getGQLAuthContextHTTP

getGQLAuthContextHTTP(req): Promise<IGQLAuthContext>

Parameters

NameType
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

Returns

Promise<IGQLAuthContext>

Implementation of

IAuthProvider.getGQLAuthContextHTTP

Defined in

packages/convostack-auth-jwt/dist/index.d.ts:18


getGQLAuthContextWS

getGQLAuthContextWS(connectionParams): Promise<IGQLAuthContext>

Parameters

NameType
connectionParamsReadonly<Record<string, unknown>>

Returns

Promise<IGQLAuthContext>

Implementation of

IAuthProvider.getGQLAuthContextWS

Defined in

packages/convostack-auth-jwt/dist/index.d.ts:19


login

login(req, «destructured»): Promise<ISuccessfulAuthResponse>

Parameters

NameType
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
«destructured»ILoginParams

Returns

Promise<ISuccessfulAuthResponse>

Implementation of

IAuthProvider.login

Defined in

packages/convostack-auth-jwt/dist/index.d.ts:20


refresh

refresh(req, params): Promise<ISuccessfulAuthResponse>

Parameters

NameType
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
paramsIRefreshParams

Returns

Promise<ISuccessfulAuthResponse>

Implementation of

IAuthProvider.refresh

Defined in

packages/convostack-auth-jwt/dist/index.d.ts:21