[REST API] Questions and improvements

by Armaghan Saqib, Monday, May 08, 2023, 05:14 (354 days ago) @ bohte

Hi,

Since authentication is something not related to SQL-Ledger, please feel free to define its specification and development on your side while I shall take care of all the sql-ledger functionality in the API.

In Hashim's project, when his user logins, a session id is generated and stored in a database table. It is also returned by api and stored by the front end application. (written in vue). This session id is then passed in each api call in the header part and . So this way, this key/session id is always unique for every session. You can write your authentication on this line or using JWT whatever you feel like necessary.

Regards


Complete thread:

 RSS Feed of thread