Skip to content

Commit 426e165

Browse files
Add access token API and bump version (#5)
1 parent 91fe5c5 commit 426e165

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"type": "git",
55
"url": "https://github.com/PropelAuth/express"
66
},
7-
"version": "2.0.7",
7+
"version": "2.0.8",
88
"license": "MIT",
99
"keywords": [
1010
"auth",
1111
"express",
1212
"user"
1313
],
1414
"dependencies": {
15-
"@propelauth/node": "^2.0.6"
15+
"@propelauth/node": "^2.0.7"
1616
},
1717
"devDependencies": {
1818
"@rollup/plugin-commonjs": "^19.0.0",

src/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export function initAuth(opts: AuthOptions) {
5656
updateUserEmail: auth.updateUserEmail,
5757
updateUserPassword: auth.updateUserPassword,
5858
createMagicLink: auth.createMagicLink,
59+
createAccessToken: auth.createAccessToken,
5960
migrateUserFromExternalSource: auth.migrateUserFromExternalSource,
6061
disableUser2fa: auth.disableUser2fa,
6162
createOrg: auth.createOrg,

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// For backwards compatibility
2-
import {BaseAuthOptions, User, OrgMemberInfo} from "@propelauth/node"
2+
import {BaseAuthOptions, OrgMemberInfo, User} from "@propelauth/node"
33

44
export type {BaseAuthOptions, User, OrgMemberInfo}
55

@@ -17,11 +17,15 @@ export type {
1717
UpdateUserEmailRequest,
1818
CreateMagicLinkRequest,
1919
MagicLink,
20+
CreateAccessTokenRequest,
21+
AccessToken
2022
} from "@propelauth/node"
2123
export {
24+
AccessTokenCreationException,
2225
CreateUserException,
2326
ForbiddenException,
2427
MagicLinkCreationException,
28+
UserNotFoundException,
2529
UnauthorizedException,
2630
UnexpectedException,
2731
UpdateUserEmailException,

0 commit comments

Comments
 (0)