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

feat: add polar provider #196

Merged
merged 2 commits into from
Oct 1, 2024
Merged

feat: add polar provider #196

merged 2 commits into from
Oct 1, 2024

Conversation

ahmedrangel
Copy link
Contributor

As requested, this PR closes #173

For testing follow these steps:

  1. Sign up at https://polar.sh/signup
  2. Go to account settings https://polar.sh/settings
  3. Look for OAuth Applications setting
  4. Click New OAuth App
  5. Fill your Application Name
  6. In Client Type, select Confidential Client
  7. In Redirect URIs, add http://127.0.0.1:3000/auth/polar
  8. In Scopes, check openid and email (It's important to check these scopes for fetching user info, otherwise, the endpoint will return error 500)
  9. In Homepage URL, write any URL
  10. Click Create
  11. Copy your Client ID and Client Secret
  12. Add to .env NUXT_OAUTH_POLAR_CLIENT_ID and NUXT_OAUTH_POLAR_CLIENT_SECRET
  13. Test polar auth

Copy link

pkg-pr-new bot commented Sep 30, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/atinux/nuxt-auth-utils@196

commit: eabe0f5

@atinux atinux merged commit 2682bcb into atinux:main Oct 1, 2024
4 checks passed
@atinux
Copy link
Owner

atinux commented Oct 1, 2024

You rock ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

polar integration
2 participants