Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Nov 15, 2024
1 parent 23eb6e3 commit eeea927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function loader(args: LoaderFunctionArgs) {

const url = new URL(request.url);
const token = url.searchParams.get('token');

console.log('ACCEPT TOKEN', token);
invariant(token, 'token not found');

const organizationApi = new OrganizationApi(fetch);
Expand Down
1 change: 1 addition & 0 deletions apps/web-remix/app/routes/auth.google.callback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function loader(args: LoaderFunctionArgs) {
const redirectTo = url.searchParams.get('state');
console.log('CALLLBACK REDIRECT', redirectTo);
if (redirectTo) {
console.log('CALLLBACK REDIRECT INSIDE', redirectTo);
return redirect(redirectTo, {
headers,
});
Expand Down

0 comments on commit eeea927

Please sign in to comment.