thevahidal / soul

🕉 A SQLite REST and realtime server
https://thevahidal.github.io/soul/
MIT License
1.45k stars 49 forks source link

Example of auth requests #195

Closed austinkottke closed 1 month ago

austinkottke commented 1 month ago

So how does one execute a request with curl in auth? Does the documentation provide any examples of doing a request with authentication.

{"message":"Invalid access token"}

thevahidal commented 1 month ago

Hi @austinkottke, You need to first create a user to obtain a token using login endpoint and then pass access token via cookie to the request. I'll try to provide an example as soon as I find some free time.

thevahidal commented 1 month ago

Hey @austinkottke, I just created a new PR (#197) regarding the auth endpoint examples. Please take a look at it and let me know if anything is not explained well.

austinkottke commented 1 month ago

Thanks -- looks great. Very clear.

thevahidal commented 1 month ago

@austinkottke

197 is merged!