Skip to content

Commit

Permalink
Update auth.github._index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
olros committed Apr 26, 2024
1 parent 6cb60b0 commit ea4b9f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/app/routes/auth.github._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const loader = async ({ response }: LoaderFunctionArgs) => {
};

export const action = async ({ request, response }: ActionFunctionArgs) => {
console.log('GitHub index action new Headers().getSetCookie', new Headers().getSetCookie);
console.log('GitHub index action', response);
try {
const user = await authenticator.authenticate('github', request);
Expand All @@ -19,6 +20,7 @@ export const action = async ({ request, response }: ActionFunctionArgs) => {
} catch (e) {
console.error('GitHub index action - catch', e);
if (e instanceof Response) {
console.error('GitHub index action - getSetCookie', e.headers.getSetCookie());
return new Response(undefined, { status: e.status, headers: e.headers });
}
throw e;
Expand Down

0 comments on commit ea4b9f5

Please sign in to comment.