v2.1.10
·
69 commits
to main
since this release
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")
- Add login_method with default of unknown by @andrew-propelauth in #32
Full Changelog: v2.1.9...v2.1.10