UNPKG

@krypton-org/krypton-auth

Version:

Express authentication middleware, using GraphQL and JSON Web Tokens.

7 lines (6 loc) 186 B
/** * Return a token of size `tokenLength`. * @param {number} tokenLength * @returns {string} token generated */ export default function generateToken(tokenLength: number): string;