mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 07:44:54 +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=
|
OTP_LIMITER=
|
||||||
|
|
||||||
|
GOOGLE_CLIENT_ID=
|
||||||
|
|
||||||
|
GOOGLE_CLIENT_SECRET=
|
||||||
@ -115,8 +115,8 @@ export class AuthService {
|
|||||||
async getProfile(googleCode: string) {
|
async getProfile(googleCode: string) {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('https://oauth2.googleapis.com/token', {
|
const response = await axios.post('https://oauth2.googleapis.com/token', {
|
||||||
client_id: process.env.GOOGLE_CLIENT_ID,
|
client_id: this.configService('GOOGLE_CLIENT_ID'),
|
||||||
client_secret: process.env.GOOGLE_CLIENT_SECRET,
|
client_secret: this.configService('GOOGLE_CLIENT_SECRET'),
|
||||||
code: googleCode,
|
code: googleCode,
|
||||||
grant_type: 'authorization_code',
|
grant_type: 'authorization_code',
|
||||||
redirect_uri: 'http://localhost:3000/auth/google/callback',
|
redirect_uri: 'http://localhost:3000/auth/google/callback',
|
||||||
|
|||||||
Reference in New Issue
Block a user