Skip to content

Commit

Permalink
chore: add telegram session handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Jul 4, 2024
1 parent 85baeb9 commit c1809fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/staking/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createAuthHandler } from '@session/auth/api';
import { DiscordProvider, handleDiscordSession } from '@session/auth/providers/discord';
import { TelegramProvider } from '@session/auth/providers/telegram';
import { TelegramProvider, handleTelegramSession } from '@session/auth/providers/telegram';

const discordClientId = process.env.DISCORD_CLIENT_ID;
const discordClientSecret = process.env.DISCORD_CLIENT_SECRET;
Expand All @@ -25,6 +25,7 @@ export const { GET, POST } = createAuthHandler({
callbacks: {
async session({ session, token }) {
handleDiscordSession({ session, token });
handleTelegramSession({ session, token });
return session;
},
},
Expand Down

0 comments on commit c1809fe

Please sign in to comment.