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.
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. AndgetOrganizationToken
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