ITEnthusiasm
localhost
atoyebs
ROMAIN
tomita0022
albatroz
roles.go:94: [Info] Role added to user: &{false} with user_id:702116bc-1a9f-4a1c-b71e-3d74d9c0fce4 role: 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) })
basheer_ops
flaskdev
phenomenal_moose_56739
nano_ck
_rajar
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).