Page Contents

Home > @loopback/authentication-jwt > RefreshtokenService > verifyToken

RefreshtokenService.verifyToken() method

Verify the validity of a refresh token, and make sure it exists in backend.

Signature:

verifyToken(refreshToken: string): Promise<RefreshToken & RefreshTokenRelations>;

Parameters

Parameter Type Description
refreshToken string  

Returns:

Promise<RefreshToken & RefreshTokenRelations>