mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 15:17:41 +00:00
added env example
This commit is contained in:

committed by
GitHub

parent
bc0a8627c4
commit
20156568e2
@ -90,3 +90,6 @@ FIREBASE_DATABASE_URL=
|
||||
|
||||
OTP_LIMITER=
|
||||
|
||||
GOOGLE_CLIENT_ID=
|
||||
|
||||
GOOGLE_CLIENT_SECRET=
|
@ -115,8 +115,8 @@ export class AuthService {
|
||||
async getProfile(googleCode: string) {
|
||||
try {
|
||||
const response = await axios.post('https://oauth2.googleapis.com/token', {
|
||||
client_id: process.env.GOOGLE_CLIENT_ID,
|
||||
client_secret: process.env.GOOGLE_CLIENT_SECRET,
|
||||
client_id: this.configService('GOOGLE_CLIENT_ID'),
|
||||
client_secret: this.configService('GOOGLE_CLIENT_SECRET'),
|
||||
code: googleCode,
|
||||
grant_type: 'authorization_code',
|
||||
redirect_uri: 'http://localhost:3000/auth/google/callback',
|
||||
|
Reference in New Issue
Block a user