Settings

Theme

BlueAuth: Open-source passwordless and serverless auth. No databases needed

github.com

3 points by sevenadrian 4 years ago · 4 comments

Reader

smt88 4 years ago

For the skeptical, "no database needed" really means "database-agnostic".

From the example code:

> In this example our users are in this array, but in the real world you likely have them stored in an API service or DB

  • sevenadrianOP 4 years ago

    hmm, yes, I guess at some level user data is stored in a database somewhere.

    What is trying to be communicated here is you don't need to connect to a database at all. You can use an API, something in memory, etc. The library doesn't have to connect to a DB.

    For example, I use Hasura a lot (a GraphQL wrapper around postgres), and this library works perfect with that, since blueauth can just do API calls.

    But yes, even in that scenario it is Hasura that is communicating with a database but not blueauth.

    Basically blueauth can interface with anything you can write in javascript (any type of DB, interface, etc)

    • smt88 4 years ago

      If you're using Hasura, why not use built-in Postgres user auth?

      • sevenadrianOP 4 years ago

        A few reasons, but one of the primary ones is there needed to be a way to securely store the session or identity of the user on the client side. There are a few ways of doing this on the client; storing it in memory, using browser web storage, etc. But the most secure way (for users using a browser) is storing the data securely in a HTTP only cookie, and it's this aspect of the responsibilities that this library looks to handle.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection