Securing flows with third-party authentication services

When it comes to building web applications with Alphi you will need an authentication/ membership service to:

  • Identify the user executing the flow

  • Limit feature access based on the users plan/ subscription

  • Allow users to create, read, update and delete records associated with their account

Utilising our authentication integrations, you can connect popular nocode membership services like Outseta and Memberstack in minutes.

Including a token in a request to Alphi

When running a flow with authentication enabled, you must include the authorisation token in the request.

-H "Authorization: Bearer eyJhbGci..."

Javascript Example

fetch('https://live.api-server.io/run/v1/YOUR_FLOW_ID', {
    headers: {
      'Authorization': 'Bearer ' + Outseta.getAccessToken()
      // 'Authorization': 'Bearer ' + $memberstackDom.getMemberCookie()
  .then((response) => response.json())
  .then((data) => console.log(data));

Last updated