Skip to main content

UtilsNamespace.hashUserSubject() method

Return the hashed user subject

The subject, which part of the JWT token provided by the application to identify the user, is never stored in the database. Instead, the hashed subject is used to identify the user in the database.

Signature:

hashUserSubject(sub: string): string;

Parameters

ParameterTypeDescription
substring

Returns:

string

The hashed user subject