refactor: rename blog app to www
This commit is contained in:
parent
5ff2a3056e
commit
87c8260c80
40 changed files with 6 additions and 6 deletions
|
|
@ -1,25 +0,0 @@
|
|||
import GitHub from '@auth/core/providers/github';
|
||||
import { defineConfig } from 'auth-astro';
|
||||
|
||||
export default defineConfig({
|
||||
providers: [
|
||||
GitHub({
|
||||
clientId: import.meta.env.GITHUB_CLIENT_ID,
|
||||
clientSecret: import.meta.env.GITHUB_CLIENT_SECRET,
|
||||
}),
|
||||
],
|
||||
callbacks: {
|
||||
jwt({ token, account, profile }) {
|
||||
if (account && profile) {
|
||||
token.id = profile.id;
|
||||
}
|
||||
return token;
|
||||
},
|
||||
session({ session, token }) {
|
||||
if (session.user && token.id) {
|
||||
(session.user as any).id = String(token.id);
|
||||
}
|
||||
return session;
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue