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 auth login and access token handling #24

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

bompo
Copy link
Member

@bompo bompo commented Oct 30, 2024

The access token can now be passed to the client.

To get the access token you can call
const token = await lo
before the client generation and pass this token.

Or you call the client without the token and the client will auto redirect to the login after the user starts the first API command (axios intercept)

@bompo bompo requested review from evrys and sn3ek October 30, 2024 06:58
src/LoginWithAuth0.ts Outdated Show resolved Hide resolved
src/LoginWithAuth0.ts Outdated Show resolved Hide resolved
src/LoginWithAuth0.ts Outdated Show resolved Hide resolved
src/NovaClient.ts Show resolved Hide resolved
src/NovaClient.ts Show resolved Hide resolved
@bompo bompo requested a review from sn3ek November 4, 2024 10:10
src/LoginWithAuth0.ts Show resolved Hide resolved
src/LoginWithAuth0.ts Outdated Show resolved Hide resolved
src/lib/NovaCellAPIClient.ts Outdated Show resolved Hide resolved
src/lib/NovaCellAPIClient.ts Outdated Show resolved Hide resolved
src/LoginWithAuth0.ts Outdated Show resolved Hide resolved
src/NovaClient.ts Show resolved Hide resolved
@bompo bompo requested a review from evrys November 6, 2024 07:57
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