Skip to content

Commit

Permalink
feat: redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
kaldray committed Jun 18, 2024
1 parent 521cef3 commit 7a16299
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const Home: NextPage = () => {
Pour découvrir tout ceci, connectez-vous avec votre compte <strong>Deezer</strong> ou <strong>Spotify</strong>
.
</p>
<button onClick={async () => await signIn()}>Se connecter</button>
<button onClick={async () => await signIn(undefined, { callbackUrl: `https://statlist.fr` })}>
Se connecter
</button>
</section>
</>
);
Expand All @@ -41,7 +43,6 @@ export default Home;

export const getServerSideProps = async (context: GetServerSidePropsContext): Promise<getServerSideUserInfo> => {
const token = await getToken(context);
console.log(process.env.NEXTAUTH_SECRET, "=========");
if (token !== null) {
return {
redirect: {
Expand Down

0 comments on commit 7a16299

Please sign in to comment.