-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
examples/authTokens/index.js
Outdated
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) => { |
There was a problem hiding this comment.
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: { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.