Skip to main content

IAdminForthAuth

Methods

getClientIp()

getClientIp(headers): string

Parameters

ParameterType
headersany

Returns

string


issueJWT()

issueJWT(payload, type, expiresIn?): string

Parameters

ParameterType
payloadObject
typestring
expiresIn?string

Returns

string


removeAuthCookie()

removeAuthCookie(response): void

Parameters

ParameterType
responseany

Returns

void


removeCustomCookie()

removeCustomCookie(__namedParameters): void

Parameters

ParameterType
__namedParametersobject
__namedParameters.namestring
__namedParameters.responseany

Returns

void


setAuthCookie()

setAuthCookie(__namedParameters): void

Parameters

ParameterType
__namedParametersobject
__namedParameters.expireInDays?number
__namedParameters.pkstring
__namedParameters.responseany
__namedParameters.usernamestring

Returns

void


verify()

verify(jwt, mustHaveType, decodeUser?): Promise<any>

Parameters

ParameterType
jwtstring
mustHaveTypestring
decodeUser?boolean

Returns

Promise<any>