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
sqlpage_jwt_sign(payload: json_str, secret: str) -> str provides a JWT signed using the provided secret
sqlpage_jwt_verify(jwt_token: str, secret: str) -> |header: json_str|payload: json_str|valid: bool| verifies that the provided JWT and gives the payload and the header
Hello, I'm glad you find this interesting. I would be pleased to open a pull request. I have never programmed in Rust but if you give me some time I could try to draft something.
Could you give me some pointers of which parts of the program to modify to add functions?
What are you building with SQLPage ?
A proof of concept for use as a general purpose engine for declarative apps
What is your problem ? A description of the problem, not the solution you are proposing.
I would like to manage sessions for users with a stateless solution
What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?
JWT or PHP sessions
Describe the solution you'd like
Provide two built-in functions (like in this project https://github.com/michelp/pgjwt):
sqlpage_jwt_sign(payload: json_str, secret: str) -> str
provides a JWT signed using the provided secretsqlpage_jwt_verify(jwt_token: str, secret: str) -> |header: json_str|payload: json_str|valid: bool|
verifies that the provided JWT and gives the payload and the headerDescribe alternatives you've considered
Using https://github.com/michelp/pgjwt
Additional context
The text was updated successfully, but these errors were encountered: