Public preview: Customize Azure Static Web Apps authentication with a serverless function | Azure updates | Microsoft Azure
Azure Static Web Apps adds support for programmatically assigning custom user roles using Azure Functions.