diff --git a/src/lib/server/entity/AuthState.ts b/src/lib/server/entity/AuthState.ts index 30f7351..bd1efb4 100644 --- a/src/lib/server/entity/AuthState.ts +++ b/src/lib/server/entity/AuthState.ts @@ -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');