IUserManager.GenerateUserToken Method
Generates a token for the given user and purpose.
Syntax
Unit: Sphinx.UserManager
function IUserManager.GenerateUserToken(User: TUser; const TokenProvider: string; const Purpose: string): string; virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
User | TUser | The user to generate the token for. |
|
const | TokenProvider | string | The registered token provider used to generate the token. |
const | Purpose | string | The purpose the token will be for. |
Returns
The generated token, for the given user and purpose.