lbx-jwt
Version:
Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.
28 lines (26 loc) • 538 B
text/typescript
import { Model, model, property } from '@loopback/repository';
/**
* The type of the request used for resetting a password.
*/
@model()
export class ConfirmResetPassword extends Model {
/**
* The reset password token.
*/
@property({
type: 'string',
required: true
})
resetToken: string;
/**
* The new password of the user.
*/
@property({
type: 'string',
required: true,
jsonSchema: {
minLength: 12
}
})
password: string;
}