corbado / corbado-nodejs Goto Github PK
View Code? Open in Web Editor NEWAdd passkeys to your Node.js application with the Corbado Node.js SDK.
Home Page: https://www.corbado.com/passkeys/node-js
License: MIT License
Add passkeys to your Node.js application with the Corbado Node.js SDK.
Home Page: https://www.corbado.com/passkeys/node-js
License: MIT License
The return value of await sdk.sessions().getCurrentUser(jwt);
has a form, that doesn't match the User interface. This is an example return value:
User {
authenticated: false,
id: '',
name: '',
email: '',
phoneNumber: ''
}
For our launch we need to polish our SDK as much as possible.
The plan is to adapt as much as possible from our Corbado PHP SDK (https://www.github.com/corbado/corbado-php, branch 16-improve-sdk) but only if "no one" is doing it different in the JavaScript/TypeScript world (discuss before implementation if in doubt).
If you need to research "how others are doing something" we always look at Stripe SDKs and Auth0 SDKs.
The Node.js SDK (Express) is commonly referred to as a private client, specifically designed for usage within closed backend applications. This particular SDK should exclusively be utilized in such environments, as it is crucial to ensure that the API secret remains strictly confidential and is never shared.
We have a Firebase extension that spins up a number of Firebase functions that run NodeJS. In them so far we directly make use of generated clients for frontendAPI and backendAPI. As we now have the new node-sdk we should use it inside this firebase extension.
To make this possible we need to add the following calls:
Firebase extension code: corbado_auth_firebase (the important file is corbado_service.ts)
The order in which validation error messages come from the backend is random. So all tests with at least two validation error messages are flaky (see tests/integration/services/emailLink.test.ts for example).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.