feat: add admin auth
This commit is contained in:
@@ -48,5 +48,6 @@ import { AuthRedisProvider } from './providers/auth-redis.provider';
|
||||
useClass: GlobalAuthGuard,
|
||||
},
|
||||
],
|
||||
exports: [GenerateTokenProvider],
|
||||
})
|
||||
export class AuthModule {}
|
||||
|
||||
@@ -3,6 +3,5 @@ Content-Type: application/json
|
||||
lang: fa
|
||||
|
||||
{
|
||||
"phone": "09333026363",
|
||||
"password": "Password1@"
|
||||
"phone": "09121111111"
|
||||
}
|
||||
@@ -2,6 +2,6 @@ POST http://localhost:3000/auth/verify-otp
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"phone": "09333026363",
|
||||
"otp": "44875"
|
||||
"phone": "09121111111",
|
||||
"otp": "69210"
|
||||
}
|
||||
Reference in New Issue
Block a user