Compare commits

...

2 Commits

Author SHA1 Message Date
firmanr d4e8e72af0 Merge pull request 'feat: rename header key basic auth' (#155) from feat/otp-cancel into development
Reviewed-on: #155
2025-06-11 18:15:45 +07:00
Firman Ramdhani 7dd29c2a70 feat: rename header key basic auth 2025-06-11 18:15:09 +07:00
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export class OtpAuthGuard implements CanActivate {
async canActivate(context: ExecutionContext): Promise<boolean> {
const request = context.switchToHttp().getRequest();
const jwtAuth = request.headers['authorization'];
const basicAuth = request.headers['basic_authorization'];
const basicAuth = request.headers['x-basic-authorization'];
console.log({ jwtAuth, basicAuth });
// 1. Cek OTP Auth (basic_authorization header)