@baseworks/auth 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,5 +3,5 @@ export { OidcHumanResolverConfig, createOidcHumanResolver } from './oidc-human.j
3
3
  export { OidcAuthUrlConfig, PkceChallenge, buildOidcAuthUrl, generatePkce } from './pkce.js';
4
4
  export { CliAuthResult, CliAuthStart, PollOptions, pollCliAuth, startCliAuth } from './cli-auth.js';
5
5
  export { hashToken, looksLikeJwt, stripBearer } from './token.js';
6
- export { JwtClaims, verifyHs256Jwt } from './jwt.js';
6
+ export { JwtClaims, signHs256Jwt, verifyHs256Jwt } from './jwt.js';
7
7
  export { buildAccountProfileUrl, buildAuthLoginUrl, buildAuthLogoutUrl, buildPublicUrl, getAccountPublicUrl, getAppBasePath, getAuthPublicUrl, getPublicSiteUrl, normalizeUrlLike } from './url-helpers.js';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  stripBearer
15
15
  } from "./chunk-VBIQJKUU.js";
16
16
  import {
17
+ signHs256Jwt,
17
18
  verifyHs256Jwt
18
19
  } from "./chunk-OD5XLL3O.js";
19
20
  import {
@@ -47,6 +48,7 @@ export {
47
48
  looksLikeJwt,
48
49
  normalizeUrlLike,
49
50
  pollCliAuth,
51
+ signHs256Jwt,
50
52
  startCliAuth,
51
53
  stripBearer,
52
54
  verifyHs256Jwt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseworks/auth",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
package/src/index.ts CHANGED
@@ -17,8 +17,8 @@ export type { CliAuthStart, CliAuthResult, PollOptions } from './cli-auth';
17
17
  // Token utilities
18
18
  export { hashToken, looksLikeJwt, stripBearer } from './token';
19
19
 
20
- // HS256 JWT verification (Node.js)
21
- export { verifyHs256Jwt } from './jwt';
20
+ // HS256 JWT sign + verify (Node.js)
21
+ export { signHs256Jwt, verifyHs256Jwt } from './jwt';
22
22
  export type { JwtClaims } from './jwt';
23
23
 
24
24
  // URL helpers (auth/account public URLs, login/logout URL builders)