Problem with Strava provider #5279
Replies: 5 comments 3 replies
-
It seems like you need to add athlete to your schema. 🤔 |
Beta Was this translation helpful? Give feedback.
-
I ran into the same problem yesterday. Strava responds to a token request with the following object.
This object, including the next-auth/packages/next-auth/src/core/lib/oauth/callback.ts Lines 187 to 196 in 92b38ed Like @ThangHuuVu suggested, this could be fixed by adding But since I don't actually want to store this information I used a custom
A suggestion would be to expand on the documentation or use this |
Beta Was this translation helpful? Give feedback.
-
still an issue as of april 2023. looks like pr #5461 didn't go anywhere |
Beta Was this translation helpful? Give feedback.
-
Still same issue? I get also sign in with a another user.. { My schema.prisma: generator client { datasource db { model User { accounts Account[] model Account { athlete Athlete? // Hier wurde das athlete Feld hinzugefügt user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@unique([provider, providerAccountId]) model Athlete { account Account? @relation(fields: [accountAthleteId], references: [id]) |
Beta Was this translation helpful? Give feedback.
-
This is still an issue, any updates on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Hello guys,
I'm new to next.js and next-auth and I'm trying to implet a sign-in with Strava feature. I followed this tutorial for Github : https://vercel.com/guides/nextjs-prisma-postgres and tried to make it work with Strava
You can find my code here : https://github.com/johann-arias/strava-stats
When I click the "Sign in with Strava" button, I get an error displayed in the browser :
And here's what's my terminals shows :
A user is created in my database :
Thanks a lot for your help
How to reproduce ☕️
https://github.com/johann-arias/strava-stats
go to localhost:3000, click on "Log In" and "Sign in with Strava"
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions