Comments (4)
Besides registering users it would also be great to have the ability to manage sign in of users eg. to have an admin exposed sign in API where the default login related settings can be overridden for each sign in request.
For example:
- Setting token expiration length when signing in a user. The use case for this is that token expiration could be different for users with different roles and we could set a different expiration length on a per user basis.
- Setting requirement for MFA. Again, for some users we want to make it optional, or required. It could again be set wether MFA is required or not at login time.
from nhost.
Hello @beepsoft,
Better late than never.
From what I see, it is possible to perform some tasks from the GraphQL endpoint when setting a specific set of permissions to a super user role (or when using the hasura secret except):
- trigger emails
- set password
- authenticate (but I don't think this one should be considered)
About the two examples, it would imply adding new columns in the user table (something like access_token_expires_in
and mfa_required
). Then, in using the above suggestion, it would be already possible to change these values.
I feel the two examples are bit of an edge case, but feel free to open an issue about each, maybe it will ring a bell to other community members!
from nhost.
@plmercereau I was actually looking for how to set longer user sessions without having to refresh.
We're adding offline capability to our application and we would like people to login in the morning, disconnect from internet and then synchronize their work at the end of the day for example.
from nhost.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from nhost.
Related Issues (20)
- "Track this" in the SQL editor doesn't update metadata
- Cannot login with password less in version 3.3.2 HOT 7
- @nhost/react: Infinite loop with requests to `/token` if two tabs are open & user logs out in one tab HOT 3
- Hasura doesn't work HOT 3
- nhost project showing 404 HOT 1
- dashboard: allow configuring postmark's native integraton
- Feature Request: Choose Embedding Model HOT 16
- Feature Request: Add OTP for Email in Auth HOT 7
- dashboard: github connect: investigate potential UX improvements HOT 2
- dashboard: multiple error toasts closing together
- Custom Claim Array always null with auth 0.29.1 HOT 5
- dashboard: add model settings to autoembeddings configuration
- dashboard: e2e tests for Run and AI pages
- Error in signup/email-password HOT 2
- Never received any otp code, response is null on session and error
- Nhost (Next) JWT Token expire and apollo/nhostNext js client stops working HOT 19
- Can't Access Auth Endpoint HOT 1
- Change metadata for user in dashboard HOT 2
- evaluate project templates
- add "headers" option to missing methods in the js sdk
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 nhost.