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(next): add getAccessToken and getOrganizationToken for pages router #782

Merged

Conversation

wangsijie
Copy link
Contributor

Summary

add getAccessToken and getOrganizationToken methods for pages router

Users can now use getAccessToken(request, response, 'resource-indicator') to get access token directly in your pages router. And getOrganizationToken is also available to get organization token.

This PR also updates the sample project, and remove some content to keep it simple.

Testing

Unit tests and local tested.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@wangsijie wangsijie requested a review from a team August 8, 2024 07:31
@wangsijie wangsijie force-pushed the wangsijie-log-9712-getaccesstoken-for-nextjs-pages-router branch from 845025e to ddec4ea Compare August 9, 2024 08:37
@wangsijie wangsijie merged commit 5610505 into master Aug 12, 2024
21 of 22 checks passed
@wangsijie wangsijie deleted the wangsijie-log-9712-getaccesstoken-for-nextjs-pages-router branch August 12, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants