👔 (oauth) add callback URI option for google
Adding a callback option to the Google OAuth provider used to define the OAuth callback URI. If not defined, the callback URI will use the default value in the .env file.
This commit is contained in:
@ -3,9 +3,9 @@ import { AppError } from "../../../../helpers/error/instances/app";
|
||||
import { googleProvider } from "../../providers/google.provider";
|
||||
import { redis } from "../../../../utils/databases/redis/connection";
|
||||
|
||||
export const googleRequestService = async () => {
|
||||
export const googleRequestService = async (callbackURI?: string) => {
|
||||
try {
|
||||
const google = googleProvider();
|
||||
const google = googleProvider(callbackURI);
|
||||
const state = arctic.generateState();
|
||||
const codeVerifier = arctic.generateCodeVerifier();
|
||||
const scopes = ["openid", "profile", "email"];
|
||||
|
||||
Reference in New Issue
Block a user