Skip to content

Commit 3af0a25

Browse files
committed
update react-auth to use api path prefix
1 parent 8bbe1bd commit 3af0a25

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

packages/react-auth/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.0.19 - 2025-11-19
9+
10+
### Changed
11+
12+
- Upgraded @pangeacyber/vanilla-js auth client version
13+
14+
### Added
15+
16+
- Switch usePathApi to apiPathPrefix path parameter to AuthConfig
17+
818
## 0.0.18 - 2025-04-09
919

1020
### Changed

packages/react-auth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pangeacyber/react-auth",
33
"description": "Pangea auth provider React component",
4-
"version": "0.0.18",
4+
"version": "0.0.19",
55
"type": "commonjs",
66
"source": "src/index.ts",
77
"main": "dist/index.cjs",
@@ -39,7 +39,7 @@
3939
"typecheck": "tsc --noEmit"
4040
},
4141
"dependencies": {
42-
"@pangeacyber/vanilla-js": "0.1.15",
42+
"@pangeacyber/vanilla-js": "0.1.16",
4343
"jose": "^6.1.0",
4444
"lodash": "^4.17.21"
4545
},

packages/react-auth/src/AuthProvider/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const AuthProvider: FC<AuthProviderProps> = ({
174174
domain: config.domain,
175175
clientToken: config.clientToken,
176176
callbackUri: config.callbackUri,
177-
usePathApi: config.usePathApi,
177+
apiPathPrefix: config.apiPathPrefix,
178178
};
179179
return new AuthNClient(clientConfig);
180180
}, [config]);

packages/react-auth/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface AuthConfig {
142142
/**
143143
* Use path-based API routing, for private cloud only.
144144
*/
145-
usePathApi?: boolean;
145+
apiPathPrefix?: string;
146146
}
147147

148148
/**

packages/react-auth/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ __metadata:
472472
"@arethetypeswrong/cli": "npm:^0.18.2"
473473
"@babel/core": "npm:^7.28.5"
474474
"@futureportal/parcel-transformer-package-version": "npm:^1.0.0"
475-
"@pangeacyber/vanilla-js": "npm:0.1.15"
475+
"@pangeacyber/vanilla-js": "npm:0.1.16"
476476
"@parcel/config-default": "npm:^2.16.1"
477477
"@parcel/packager-ts": "npm:^2.16.1"
478478
"@parcel/plugin": "npm:^2.16.1"
@@ -496,12 +496,12 @@ __metadata:
496496
languageName: unknown
497497
linkType: soft
498498

499-
"@pangeacyber/vanilla-js@npm:0.1.15":
500-
version: 0.1.15
501-
resolution: "@pangeacyber/vanilla-js@npm:0.1.15"
499+
"@pangeacyber/vanilla-js@npm:0.1.16":
500+
version: 0.1.16
501+
resolution: "@pangeacyber/vanilla-js@npm:0.1.16"
502502
dependencies:
503503
lodash: "npm:^4.17.21"
504-
checksum: 10c0/0bf4538ea597941780097af6dd01109c4b599af08e60f0b0e6c1e67f70581c45688fea71fe09975227781885e46fd515c22320f2578ee386a950d4a13de1cc4f
504+
checksum: 10c0/20f27efd8433e199ac9a20d7f532fe5891f61d00e3ff71c6df20f62d5790863c15e14de3687a94982cf466ca852766fb59e2309c7b3cf3796b863fe7dd8a5e1a
505505
languageName: node
506506
linkType: hard
507507

packages/vanilla-js/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"module": "esnext",
3+
"target": "ES2017",
4+
"module": "ESNext",
5+
"lib": ["ES2017", "DOM"],
56
"sourceMap": true,
67
"strict": true,
78
"moduleResolution": "node",

0 commit comments

Comments
 (0)