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

Added auth tokens example #22

Merged
merged 3 commits into from
Jan 21, 2024
Merged

Conversation

corbadoman
Copy link
Contributor

No description provided.

@corbadoman corbadoman linked an issue Jan 21, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jan 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4c00f5b) 26.26% compared to head (d691b08) 26.26%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   26.26%   26.26%           
=======================================
  Files          25       25           
  Lines        3233     3233           
  Branches      618      618           
=======================================
  Hits          849      849           
  Misses       2192     2192           
  Partials      192      192           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

const config = new corbado.Config(process.env.CORBADO_PROJECT_ID, process.env.CORBADO_API_SECRET);
const sdk = new corbado.SDK(config);

app.get('/', async (req, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

endpoint vllt. /validateAuthToken nennen?

const corbadoAuthToken = req.query.corbadoAuthToken;
const request = {
token: corbadoAuthToken,
clientInfo: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Müssen wir die clientInfo aktuell immer mitgeben? Kann mir vorstellen, dass das anstrengend/verwirrend sein könnte für devs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed right now its mandatory, can fix it later

@corbadoman corbadoman merged commit 79321c7 into main Jan 21, 2024
3 of 4 checks passed
@corbadoman corbadoman deleted the 21-create-example-for-auth-tokens branch January 21, 2024 13:45
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.

Create example for auth tokens
2 participants