nikachu5338
04/10/2024, 5:40 PMSekai
04/10/2024, 10:46 PMmvilrokx
04/11/2024, 5:05 AM200 (empty body), no matter how may errors I return from my handlers. As soon as I remove the session.VerifySession echo'fied middleware, I get the actual errors. It seems as if the session.VerifySession middleware is swallowing the echo error and just returning a 200 instead. Anybody any idea what could be causing this?mnky_js
04/11/2024, 6:50 AMmsalar
04/11/2024, 6:50 AMNext.js and the backend is using Nest.jsdavide.debernardi
04/11/2024, 7:11 AM16.6.8 with core 7.x.
The issue I am facing is that web is working fine, but when trying to login with Google from an iOS client, google is returning 401 with unauthorized_client.
I was reading the docs at the bottom of this message, but I have the following questions:
1. do I need to provide separate client configurations?
2. can I provide separate client configurations for all social login providers?
3. I see there is a parameter called clientType , is it just an arbitrary string?
Thanks in advance for supporting!
https://supertokens.com/docs/thirdpartypasswordless/custom-ui/thirdparty-login#social--sso-login-for-both-web-and-mobile-appsanuj6163
04/11/2024, 8:03 AManuj6163
04/11/2024, 8:03 AMlocalhost:3000/auth/callback,
thirdPartyId: provider
})
this.route.navigate([response]);
}
auth.routes.ts
export const AuthRoutes: Routes = [
{
path: '',
component: AuthComponent,
children: [
{ path: '', redirectTo: 'login', pathMatch: 'full' },
{
path: 'callback',
component: CallbackComponent,
title: 'Auth | Callback',
},
{ path: 'login', component: LoginComponent, title: 'Auth | Login' },
{ path: 'logout', component: LogoutComponent, title: 'Auth | Logout' },
{
path: 'register',
component: RegisterComponent,
title: 'Auth | Register',
},
{
path: 'forgot-password',
component: ForgotPasswordComponent,
title: 'Auth | Forgot Password',
},
{
path: 'reset-password',
component: ResetPasswordComponent,
title: 'Auth | Reset Password',
},
],
},
];anuj6163
04/11/2024, 8:03 AMwendytrns
04/11/2024, 11:49 AMreturn {
debug: true,
framework: "custom",
supertokens: {
connectionURI:
process.env.SUPERTOKENS_URI || "https://try.supertokens.com",
apiKey: process.env.SUPERTOKENS_API_KEY,
},
appInfo: appInfo("backend"),
recipeList: [
PasswordlessNode.init({
flowType: "MAGIC_LINK",
contactMethod: "EMAIL",
emailDelivery: {...}
}),
SessionNode.init(),
Dashboard.init(),
UserRoles.init(),
UserMetadata.init(),
],
isInServerlessEnv: true,
};
};
Could somebody help me?Lucifer979
04/11/2024, 2:02 PMaleeza333
04/12/2024, 9:19 AMmr.lurs
04/13/2024, 12:09 PMDarko
04/13/2024, 2:52 PMTushar
04/17/2024, 4:18 AMrubenstolk
04/17/2024, 8:02 AMrubenstolk
04/17/2024, 8:02 AMDarko
04/17/2024, 8:40 AMgsj
04/18/2024, 11:23 AMError: SuperTokens core threw an error for a PUT request to path: '/recipe/role' with status code: 500 and message: Internal Error
Any idea what could be the issue. thanks for the help!Darko
04/18/2024, 11:41 AMLucas Dias
04/18/2024, 5:52 PMtomita0022
04/19/2024, 12:02 PMalbatroz
04/20/2024, 8:15 PMroles.go:94: [Info] Role added to user: &{false} with user_id:702116bc-1a9f-4a1c-b71e-3d74d9c0fce4 role: admin
but i can't call endpoint with role claim validator
it eventually works, but i am not sure about the exact time
calling this returns role as admin
go
admin.Get("/auth/role", func(c *fiber.Ctx) error {
sessionContainer := session.GetSessionFromRequestContext(c.UserContext())
response, err := userroles.GetRolesForUser("public", sessionContainer.GetUserID(), nil)
if err != nil {
log.Errorf("Error getting roles: %v", err)
return util.ReturnError(c, 500, "Error getting roles")
}
return util.ReturnSuccess(c, response.OK.Roles)
})tomita0022
04/22/2024, 6:25 AMheneftees
04/22/2024, 7:52 AMheneftees
04/22/2024, 7:54 AMheneftees
04/22/2024, 8:27 AMDarko
04/22/2024, 8:29 AM