You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
In mod-main, a user enters data and fills out various forms before they have an account.
And when they signup we DONT create a full account until we have emailed then and they click in the email on the Verify link, which then opens the Verify Page.
SO we have lost of the data that they filled in previously.
Solutions ?
We could save it using Shared Prefences, but that ties the data to their machine.
The more robust way is to base64 encode the data they filled out in the form, and then add it to the Verify link !
This allows the data to travel along via the email, and so if they open the email from a different machine everything still works.
We will encrypt the base64 data using a global secret key that is is in the sys-core config
Anyway, here is a simple example of doing it in Flutter
In mod-main, a user enters data and fills out various forms before they have an account.
And when they signup we DONT create a full account until we have emailed then and they click in the email on the Verify link, which then opens the Verify Page.
SO we have lost of the data that they filled in previously.
Solutions ?
We could save it using Shared Prefences, but that ties the data to their machine.
The more robust way is to base64 encode the data they filled out in the form, and then add it to the Verify link !
This allows the data to travel along via the email, and so if they open the email from a different machine everything still works.
We will encrypt the base64 data using a global secret key that is is in the sys-core config
Anyway, here is a simple example of doing it in Flutter
base64 encoding with jwt
Out jwt into session: https://github.com/carzacc/jwt_tutorial_flutter_web/blob/master/lib/main.dart#L117
Get jwt from server in coe: https://github.com/carzacc/jwt_tutorial_flutter_web/blob/master/lib/main.dart#L183
https://github.com/carzacc/jwt_tutorial_flutter_web/blob/master/lib/main.dart#L26
In mod-main, this in one of the Flutteer models that needs to be base64 encoded:
https://github.com/getcouragenow/packages/tree/master/mod-main/client/lib/modules/user_needs/data
Here is the current GUI for it: https://maintemplate.ci.getcouragenow.org/#/myneeds/orgs/001, so you can see how the GUI maps to the Model
But the users fills out more than just this also.
The text was updated successfully, but these errors were encountered: