Added Simple Auth with JWT Tokens and Postgres #2
|
@ -22,7 +22,7 @@ export class RefreshTokenStrategy extends PassportStrategy(
|
|||
}
|
||||
|
||||
public async validate(req: Request, payload: any) {
|
||||
const refresh_token = req
|
||||
const refresh_token: string = req
|
||||
?.get('authorization')
|
||||
?.replace('Bearer', '')
|
||||
.trim();
|
||||
|
|
Loading…
Reference in New Issue