Compatibility with other js sdk
See original GitHub issueIt is a shame that the different js sdks are not compatibles between each others. I would need to use the different sdks in conjunctions for my custom needs but I need to duplicate a lot of code 😢
For example, to instantiate the client:
@auth0/auth0-react
<Auth0Provider
domain="shopidog.eu.auth0.com"
clientId="TaAOtuz41cNXYFATTABqt3lYnFIW7mXc"
redirectUri={window.location.origin}
>
@auth0/auth0-spa-js
const auth0 = await createAuth0Client({
domain: 'shopidog.eu.auth0.com',
client_id: 'TaAOtuz41cNXYFATTABqt3lYnFIW7mXc'
});
@auth0/auth0-nextjs
initAuth0({
secret: process.env.SESSION_COOKIE_SECRET,
issuerBaseURL: process.env.NEXT_PUBLIC_AUTH0_DOMAIN,
baseURL: process.env.NEXT_PUBLIC_BASE_URL,
clientID: process.env.NEXT_PUBLIC_AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
routes: {
callback:
process.env.NEXT_PUBLIC_REDIRECT_URI ||
"http://localhost:3000/api/callback",
postLogoutRedirect:
process.env.NEXT_PUBLIC_POST_LOGOUT_REDIRECT_URI ||
"http://localhost:3000",
},
authorizationParams: {
response_type: "code",
scope: process.env.NEXT_PUBLIC_AUTH0_SCOPE,
},
session: {
absoluteDuration: parseInt(process.env.SESSION_COOKIE_LIFETIME || "7200"),
},
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Supported environments for the Firebase JavaScript SDK
The Firebase JavaScript SDK is officially supported in the following environments. Important: You still need to include polyfills for environments that ...
Read more >JavaScript Compatibility - GraalVM
a JavaScript object: the object is queried for a name and a script property, which represent the source name and code, respectively. all...
Read more >React Native compatibility · Issue #740 · aws/aws-sdk-js - GitHub
I'm not sure of the internal details of React Native, but the SDK should work similarly to any other npm modules you may...
Read more >Compatibility | Couchbase Docs
The Node.js SDK is fully compatible with Couchbase Capella, our fully-hosted database-as-a-service. To make development easier, the SDK includes the Capella ...
Read more >Compatibility of the AWS Encryption SDK for JavaScript
The AWS Encryption SDK for JavaScript is designed to be interoperable with other language implementations of the AWS Encryption SDK.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @ilyaulyanov
Yes - auth0-react is just a thin wrapper around a SPA JS client so effectively app A and app B are both using SPA JS
Yep thanks, fully understand!