Skip to content

Commit

Permalink
chore: remove unnecessary callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 19, 2024
1 parent 013daf5 commit 56d2bb1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions frontend/src/app/api/auth/[...nextauth]/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,6 @@ export const authOptions: AuthOptions = {
session.provider = token.provider;
return session;
},
async redirect({ url: _url, baseUrl: _baseUrl }) {
const baseUrl = process.env.URL || _baseUrl;
const url = _url.startsWith('/')
? `${baseUrl}${_url}`
: _url.replace(_baseUrl, baseUrl);

return url;
},
signIn: async ({ account }) => {
if (account) {
// eslint-disable-next-line camelcase
account.expires_at = Math.floor(Date.now() / 1000) + 10;
}

return true;
},
},
secret: process.env.NEXTAUTH_SECRET,
};

0 comments on commit 56d2bb1

Please sign in to comment.