Skip to content

Commit

Permalink
Merge pull request #39 from dreampipcom/dev
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
angeloreale committed Aug 23, 2024
2 parents a9444ce + 7055e06 commit d81c115
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/auth/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const GetSession = async ({ cookies = '' }) => {
},
});
const session = await response.json();
console.log({ cookies, session });
return session;
} catch (e) {
console.error(e);
Expand Down Expand Up @@ -82,7 +81,7 @@ export const providers: any[] = [
profile(profile) {
return {
id: profile.sub,
name: '',
name: profile.name,
email: profile.email,
image: '',
};
Expand Down Expand Up @@ -161,6 +160,15 @@ export const authConfig = {
},
},
cookies: {
callbackUrl: {
name: `__Secure-authjs.callback-url`,
options: {
httpOnly: false,
sameSite: 'none',
path: '/',
secure: true,
},
},
csrfToken: {
name: `authjs.csrf-token`,
options: {
Expand Down

0 comments on commit d81c115

Please sign in to comment.