Interface: IAuthProvider
auth.IAuthProvider
Implemented by
Methods
getGQLAuthContextHTTP
▸ getGQLAuthContextHTTP(req
): Promise
<IGQLAuthContext
>
Parameters
Name | Type |
---|---|
req | Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
Returns
Promise
<IGQLAuthContext
>
Defined in
packages/convostack-auth/dist/index.d.ts:28
getGQLAuthContextWS
▸ getGQLAuthContextWS(connectionParams
): Promise
<IGQLAuthContext
>
Parameters
Name | Type |
---|---|
connectionParams | Readonly <Record <string , unknown >> |
Returns
Promise
<IGQLAuthContext
>
Defined in
packages/convostack-auth/dist/index.d.ts:29
login
▸ login(req
, params
): Promise
<ISuccessfulAuthResponse
>
Parameters
Name | Type |
---|---|
req | Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
params | ILoginParams |
Returns
Promise
<ISuccessfulAuthResponse
>
Defined in
packages/convostack-auth/dist/index.d.ts:30
refresh
▸ refresh(req
, params
): Promise
<ISuccessfulAuthResponse
>
Parameters
Name | Type |
---|---|
req | Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
params | IRefreshParams |
Returns
Promise
<ISuccessfulAuthResponse
>
Defined in
packages/convostack-auth/dist/index.d.ts:31