lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.35k stars 448 forks source link

[Feature Request]: EXPO/REACT-NATIVE #1523

Closed nikitapilgrim closed 3 months ago

nikitapilgrim commented 3 months ago

Package

lucia

Description

Is it possible to realize it? If yes, can you please add an example?

pilcrowOnPaper commented 3 months ago

Yes,

  1. After creating a session, send the session ID back in the response body
  2. Store the session ID in device
  3. Send the session ID within the request (e.g. authorization header)

https://lucia-auth.com/guides/validate-bearer-tokens