Class: AuthJWT
auth-jwt.AuthJWT
Implements
Constructors
constructor
• new AuthJWT(storage
, options
)
Parameters
Name | Type |
---|---|
storage | IStorageEngine |
options | IAuthJWTOptions |
Defined in
packages/convostack-auth-jwt/dist/index.d.ts:16
Methods
getGQLAuthContextHTTP
▸ getGQLAuthContextHTTP(req
): Promise
<IGQLAuthContext
>
Parameters
Name | Type |
---|---|
req | Request <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
Name | Type |
---|---|
connectionParams | Readonly <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
Name | Type |
---|---|
req | Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
«destructured» | ILoginParams |
Returns
Promise
<ISuccessfulAuthResponse
>
Implementation of
Defined in
packages/convostack-auth-jwt/dist/index.d.ts:20
refresh
▸ refresh(req
, params
): Promise
<ISuccessfulAuthResponse
>
Parameters
Name | Type |
---|---|
req | Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
params | IRefreshParams |
Returns
Promise
<ISuccessfulAuthResponse
>
Implementation of
Defined in
packages/convostack-auth-jwt/dist/index.d.ts:21