Home Reference Source
public class | source

UserController

Method Summary

Public Methods
public

async createToken(username: string, password: string, expireAfter: number): Promise<string>

Create a new user token.

Public Methods

public async createToken(username: string, password: string, expireAfter: number): Promise<string> source

Create a new user token.

Params:

NameTypeAttributeDescription
username string
password string
expireAfter number
  • optional
  • default: 86400

Return:

Promise<string>