Member-only story
Setting Up Auth0 OTP Authentication with an 8base Workspace
Using JWT Authentication on a GraphQL API with OTP Issued ID Tokens
Depending on the type of application you are building, you may want to utilize a different authentication strategy than basic email and password forms. This decision can be for the sake of security, UX, as well as a myriad of other reasons. That said, it’s important that you choose a tech-stack that gives you the flexibility to use whichever authentication strategy you decide on.
Given that the 8base API accepts ID Tokens (JWT) issued by any OpenID compliant auth provider, you have a ton of flexibility how you’d like to implement your user authentication strategy. As long as the chosen auth provider is configured in 8base using an authentication profile, the 8base API will be able to publicly verify incoming tokens and securely validate incoming requests.
In this tutorial, we’re going to demonstrate a strategy for enabling One-time Passcode (OTP) authentication using Auth0 to work with an 8base workspace API.
Getting started with OTP Authentication
A GitHub repo containing this tutorial is available here with code samples. To get started, you’re going to need the following: