fauna-labs / auth-resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authentication with Fauna

This repository bundles authentication resources together. These contains unofficial patterns, sample code, or tools to help developers build more effectively with [Fauna][fauna]. All [Fauna Labs][fauna-labs] repositories are provided “as-is” and without support. By using this repository or its contents, you agree that this repository may never be officially supported and moved to the [Fauna organization][fauna-organization].


Guidance

More blogs inline along with the resources listed below.

Blueprints

Blueprints are pure FQL solutions that can be set up easily with the Fauna Schema Migrate tool. Since they are pure FQL and no specific backend or framework frontend code, they are typically not the complete solution (e.g. you can not yet send emails from pure FQL, nor set httpOnly cookies). They do provide an easy to set up Fauna API to create such functionality.

  • Blueprint: Email verification, verify a users email based on verification tokens. Two functions are provided, one to request a token, one to verify the user.
  • Blueprint: Password reset, a blueprint that implements a password reset flow in FQL. The blueprint provides the means to request a token (that can then be send to the user via email or other means) and a password reset function that operates with this requested token. It also provides a password change function which verified the previous password for logged-in scenarios.
  • Blueprint: Basic register/login/logout, a simple register, login and logout implementation in pure FQL.
  • Blueprint: Basic refresh tokens a refresh flow in pure FQL.
  • Blueprint: Advanced refresh tokens, an advanced implementation of a refresh flow with leaked token detection and other advanced features.

Skeleton applications

About