add prev, next links to AuthState
This commit is contained in:
parent
5770f07039
commit
e553e9ff0b
|
@ -14,6 +14,14 @@ export class AuthState {
|
|||
@Column({type: 'enum', enum: AuthProvider, nullable: false})
|
||||
provider!: AuthProvider;
|
||||
|
||||
/** Where the user will be sent if authentication is cancelled */
|
||||
@Column({type: 'varchar', length: 300, nullable: false})
|
||||
prev = '/';
|
||||
|
||||
/** Where the user should be redirected after successfully authenticating */
|
||||
@Column({type: 'varchar', length: 300, nullable: false})
|
||||
next = '/';
|
||||
|
||||
/** The state value itself */
|
||||
@Column({type: 'varchar', length: 32, nullable: false})
|
||||
state = crypto.randomBytes(16).toString('hex');
|
||||
|
|
Loading…
Reference in a new issue