The json mechanism you use right now is failing when the objects are BSON encoded python objects from MongoDB.
Ultimately it seems like Pickle would be a better solution and remove any issues with use-cases ...
On top of that it would be great if the entire user object was available on the session, sanic-auth didn't look for specific field names, and went about this in a more generic way since we can't always assume people can or will code their DB/User models to match.
thanks!
-k. noah
The json mechanism you use right now is failing when the objects are BSON encoded python objects from MongoDB.
Ultimately it seems like Pickle would be a better solution and remove any issues with use-cases ...
On top of that it would be great if the entire user object was available on the session, sanic-auth didn't look for specific field names, and went about this in a more generic way since we can't always assume people can or will code their DB/User models to match.
thanks!
-k. noah