I’m using Nuxt for my web app. For specific reasons, I decided to go with AuthJS’s Credentials Provider, but when deploying on Azure SWA (tested on both free and standard SKU), I get a
{"code":400,"message":"Login not supported for provider azureStaticWebApps"}
error when trying to access the deployed version. Locally, everything works perfect.
I’ve tried changing the staticwebapp.config.json, but it didn’t seem to work in my attempt to bypass all Azure authentication. I also set up all the env variables as accurate as possible:
AUTH_ORIGIN=<AZURE_URL>
AUTH_SECRET=<SOME_CODE>
AUTH_REDIRECT=<AZURE_URL>/success
Source code of the auth method I used: https://github.com/jahidanowar/nuxt-auth-demo/blob/complete-app/server/api/auth/%5B…%5D.ts
Since I have a custom solution, bypassing Azure auth (such as AAD) might be the best bet, but I’m not sure which way to go with this.
Any help would be greatly appreciated, thanks.