Comments (3)
@navanjr My assumption is that "userland code" refers to being able to define an OAuth provider in your project where you install nuxt-auth-utils
, rather than in the package itself.
from nuxt-auth-utils.
This is a good question @thijsw
You can copy / paste https://github.com/Atinux/nuxt-auth-utils/blob/main/src/runtime/server/lib/oauth/github.ts in ~/server/utils/my-custom-oauth.ts
for example, then update the different urls and create an API route using your exported server util (it will be auto-imported, you may have to restart your server after creating the server util)
from nuxt-auth-utils.
What does "userland code" mean in this context?
from nuxt-auth-utils.
Related Issues (20)
- Add PKCE functionality to support authentication in SPAs HOT 2
- What is the right way to expose oauth to custom modules ? HOT 4
- Session not set on index.vue / middleware HOT 4
- Support exclude specific routes from fetching session on prerendered pages HOT 3
- nuxt-auth-utils throws `Unauthorized (/api/_auth/session)` on any 404 page HOT 8
- yarn upgrade-interactive is not showing the new release version as latest HOT 2
- Keycloak Auth failing in production on setUserSession call HOT 6
- Passkey integration HOT 4
- Failed redirect authentication request to http://localhost/api/_auth/session on start HOT 1
- Pop Up Window HOT 2
- Session data not updated client side after succesful login HOT 5
- Login redirect with useRouter().push() doesn't work
- Page Refresh
- Can I verify the token on another server? HOT 2
- Custom prefix env for session token
- Session fetched after middleware execution when SSR is disabled
- Session not persisting on Safari, works fine on Firefox and Chrome HOT 3
- ability to specify redirect_uri for google and github - allows compatibility with CloudFront+Lambda HOT 3
- How to set maxAge to cookie? HOT 2
- Is it compatible with Nuxt latest branch ? Got "No match found for location with path "/auth/google?code=..." HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-auth-utils.