IUserManager.VerifyUserToken Method
Returns a flag indicating whether the specified token is valid for the given user and purpose.
Syntax
Unit: Sphinx.UserManager
function IUserManager.VerifyUserToken(User: TUser; const TokenProvider: string; const Purpose: string; const Token: string): Boolean; virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
User | TUser | The user to validate the token against. |
|
const | TokenProvider | string | The registered token provider used to generate the token. |
const | Purpose | string | The purpose the token was generated for. |
const | Token | string | The token to be validated. |
Returns
Returns true if the token is valid, otherwise false.