ITEnthusiasm
localhost
atoyebs
ROMAIN
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) })
predev_77816
basheer_ops
flaskdev
alpha_
phenomenal_moose_56739
robschilder
ℹ Starting the development server... Docusaurus website is running at "http://localhost:3000/". Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating ● Client █████████████████████████ building (10%) 0/5 entries 1/5 dependencies 0/0 modules 0 ac tive ℹ 「wds」: Project is running at http://0.0.0.0:3000/ ℹ 「wds」: webpack output is served from / ℹ 「wds」: Content not from webpack is served from /Users/rs/Documents/Development/docs/v2 ℹ 「wds」: 404s will fallback to /index.html node:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10)
git clone https://github.com/supertokens/docs.git
git checkout 0.9.0
cd v2
npm i -d
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).