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) {
|
public async validate(req: Request, payload: any) {
|
||||||
const refresh_token = req
|
const refresh_token: string = req
|
||||||
?.get('authorization')
|
?.get('authorization')
|
||||||
?.replace('Bearer', '')
|
?.replace('Bearer', '')
|
||||||
.trim();
|
.trim();
|
||||||
|
|
Loading…
Reference in New Issue