Skip to content

v2.1.10

Choose a tag to compare

@andrew-propelauth andrew-propelauth released this 13 Mar 05:37
· 69 commits to main since this release
3a4e1ea

What's Changed

  • There’s now a UserClass class in addition to the regular User type, which provides helpful methods. You can convert from one to the other like:
const user = validateAccessTokenAndGetUser(...)
const userClass = UserClass.fromUser(user)

and then the userClass useful functions on it:

userClass.getOrg(orgId)
userClass.isRole(orgId, "Admin")

Full Changelog: v2.1.9...v2.1.10