Ready to post? First, try searching for your answer.
When I create an spa application from the node management client I cannot login to my app using the client_id - Unauthorized. I noticed that this application has an APIs section, while when I create an SPA application with the normal Auth0 UI, there is no APIs option. I assume this is the issue. If so, I am not sure what scopes/permissions to give to my client SPA app from my main management API, or if there is an additional option I can set when creating my client app from the Node sdk.
Creation Options from the Node SDK
const { data: application } = await management.clients.create({
name: `${name}-app`,
app_type: "spa",
allowed_logout_urls: ["http://localhost:3000/logout"],
callbacks: ["http://localhost:3000/callback"],
allowed_origins: ["http://localhost:3000"],
web_origins: ["http://localhost:3000"],
allowed_origins: ["http://localhost:3000"],
oidc_conformant: true,
organization_usage: "require",
organization_require_behavior: "post_login_prompt",
jwt_configuration: {
lifetime_in_seconds: 60 * 60 * 24,
},
});
Result from CLI Node App -
Result from UI-Created App -