Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Strava Provider #5241

Merged
merged 8 commits into from Sep 6, 2022
Merged

Conversation

michaelangeloio
Copy link
Contributor

☕️ Reasoning

Hi team at NextAuth! First off, I love your work here. It's helped expedite the dev process immensely, so kudos to your team. I've been working on a Strava application that utilizes your Strava provider, and found one potential issue and wanted to contribute some other improvements.

Be sure to check the comments/changed files for the specific callouts I'm making.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Currently, localhost:3000 is hardcoded for the redirect_uri parameter in the provider authorization configuration for strava.js. If you're blindly following the docs (which I admit I did), you'll likely run into a callback issue when deploying on Vercel (or any other hosting service).

Fixes: No issue opened, but happy to open an issue.

📌 Resources

@vercel
Copy link

vercel bot commented Aug 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
next-auth ✅ Ready (Inspect) Visit Preview Sep 6, 2022 at 4:08PM (UTC)

@michaelangeloio michaelangeloio changed the title update strava Update Strava Provider Aug 28, 2022
@github-actions github-actions bot added core Refers to `@auth/core` providers labels Aug 28, 2022
@vercel vercel bot temporarily deployed to Preview August 28, 2022 21:19 Inactive
@vercel vercel bot temporarily deployed to Preview August 28, 2022 21:21 Inactive
Copy link
Collaborator

@ubbe-xyz ubbe-xyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙌🏽

Few small changes needed before we can integrate this 👍🏽

docs/versioned_docs/version-v3/providers/strava.md Outdated Show resolved Hide resolved
packages/next-auth/src/providers/strava.ts Outdated Show resolved Hide resolved
packages/next-auth/src/providers/strava.ts Outdated Show resolved Hide resolved
packages/next-auth/src/providers/strava.ts Outdated Show resolved Hide resolved
@ubbe-xyz ubbe-xyz self-assigned this Aug 30, 2022
michaelangrivera and others added 2 commits August 30, 2022 12:48
@vercel vercel bot temporarily deployed to Preview August 30, 2022 16:50 Inactive
@michaelangeloio
Copy link
Contributor Author

@lluia Made the changes, let me know if you see anything else! Thank you!

Copy link
Collaborator

@ubbe-xyz ubbe-xyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there ☕️ , small formatting issue.

docs/versioned_docs/version-v3/providers/strava.md Outdated Show resolved Hide resolved
@michaelangeloio
Copy link
Contributor Author

Almost there ☕️ , small formatting issue.

Hopefully that looks better!

@michaelangeloio
Copy link
Contributor Author

Realized I accidentally included a lock file 😅 , it should be ready now

@vercel vercel bot temporarily deployed to Preview September 5, 2022 16:11 Inactive
Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@balazsorban44 balazsorban44 merged commit f1d3bc2 into nextauthjs:main Sep 6, 2022
@@ -13,7 +13,7 @@ The **Strava Provider** comes with a set of default options:

- [Strava Provider options](https://github.com/nextauthjs/next-auth/blob/main/src/providers/strava.js)

You can override any of the options to suit your own use case.
You can override any of the options to suit your own use case. Ensure the `redirect_uri` configuration fits your needs accordingly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelangrivera my bad, but this was actually done in the wrong file! This is the v3 (unmaintained) documentation. Could you apply this change here in a follow-up PR: https://github.com/nextauthjs/next-auth/blob/main/docs/docs/providers/strava.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIll do!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel vercel bot temporarily deployed to Preview September 6, 2022 16:08 Inactive
@michaelangeloio michaelangeloio mentioned this pull request Sep 7, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants