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

Removed internal api from auth example #122

Merged
merged 1 commit into from
May 7, 2024

Conversation

MathiasTim
Copy link
Contributor

After we got a report (#119) that the authroization code example (formerly called "login redirect") doesn't work I started digging. We found out that in the example code I used an internal api to get e.g. the userId.

I changed the example code to use the same endpoint (search) to demonstrate the token is working.
Alongside we are also extracting the userId from the access token, which is only present in this flow and not at e.g. client credentials.

Also fixed some minor type issues in the js doc comments in shared.js

- addresses #119
- minor type fixes in shared
@MathiasTim MathiasTim requested a review from a team May 6, 2024 14:02
@MathiasTim MathiasTim merged commit f0827e6 into main May 7, 2024
5 checks passed
@MathiasTim MathiasTim deleted the mathiastim/auth-remove-internal-api-example branch May 7, 2024 06:18
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.

3 participants