Comments (2)
Hi.
By saying "supported", if you meant "Does Sanic-Auth implement this feature", then no, if you meant "Is it possible to roll your own without changing Sanic-Auth's source code", then yes.
With some safe (prevent user tampering, etc.) way to handle cookies, you can add your "Remember me" logic into your login routine, e.g. subclass class Auth
and override method Auth.current_user
, check for "Remember me" token first, fallback to Auth.current_user
.
Hope this helps.
from sanic-auth.
Thanks for the reply!
from sanic-auth.
Related Issues (15)
- What is the role of user_keyword? HOT 3
- sanic-auth no longer works with recent sanic/sanic_session HOT 3
- The user gets logged out when the application process gets terminated.. HOT 5
- one client login, every client login. Is this the expected effect of examples? HOT 7
- Error when redirecting HOT 4
- sanic.exceptions.URLBuildError: Endpoint with name `auth.login` was not found HOT 5
- AttributeError: 'str' object has no attribute 'id'
- AttributeError: 'list' object has no attribute 'ctx' HOT 3
- doesnt play well with sanic_session HOT 3
- Using auth decorators in Class-Based Views HOT 2
- How sanic-auth could be integrated into Bluteprints? HOT 2
- Does sanic auth support perfectly for the multiple workers situation? HOT 7
- User model not so agnostic... HOT 5
- Persist auth tokens after server restart? HOT 1
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 sanic-auth.