Added Simple Auth with JWT Tokens and Postgres #2

Merged
igorpropisnov merged 10 commits from feature/add-auth into main 2024-05-08 12:28:39 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 6e4cc17e34 - Show all commits

View File

@ -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();