mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
Merge pull request #1887 from logto-io/charles-bump-react-sdk-to-beta.3
chore(console,demo-app): bump react sdk version to beta.3
This commit is contained in:
commit
ac945712e6
5 changed files with 20 additions and 109 deletions
|
@ -20,7 +20,7 @@
|
|||
"@fontsource/roboto-mono": "^4.5.7",
|
||||
"@logto/phrases": "^1.0.0-beta.8",
|
||||
"@logto/phrases-ui": "^1.0.0-beta.8",
|
||||
"@logto/react": "^1.0.0-beta.2",
|
||||
"@logto/react": "^1.0.0-beta.3",
|
||||
"@logto/schemas": "^1.0.0-beta.8",
|
||||
"@logto/shared": "^1.0.0-beta.8",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
|
|
|
@ -22,7 +22,7 @@ const UserInfo = () => {
|
|||
useEffect(() => {
|
||||
(async () => {
|
||||
if (isAuthenticated) {
|
||||
const userInfo = getIdTokenClaims();
|
||||
const userInfo = await getIdTokenClaims();
|
||||
setUser(userInfo ?? { sub: '', username: 'N/A' }); // Provide a fallback to avoid infinite loading state
|
||||
}
|
||||
})();
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@logto/phrases": "^1.0.0-beta.8",
|
||||
"@logto/react": "^1.0.0-beta.2",
|
||||
"@logto/react": "^1.0.0-beta.3",
|
||||
"@logto/schemas": "^1.0.0-beta.8",
|
||||
"@logto/shared": "^1.0.0-beta.8",
|
||||
"@parcel/core": "2.7.0",
|
||||
|
|
|
@ -27,7 +27,7 @@ const Main = () => {
|
|||
|
||||
if (isAuthenticated) {
|
||||
(async () => {
|
||||
const userInfo = getIdTokenClaims();
|
||||
const userInfo = await getIdTokenClaims();
|
||||
setUser(userInfo ?? { sub: 'N/A', username: 'N/A' });
|
||||
})();
|
||||
} else {
|
||||
|
|
121
pnpm-lock.yaml
121
pnpm-lock.yaml
|
@ -48,7 +48,7 @@ importers:
|
|||
'@fontsource/roboto-mono': ^4.5.7
|
||||
'@logto/phrases': ^1.0.0-beta.8
|
||||
'@logto/phrases-ui': ^1.0.0-beta.8
|
||||
'@logto/react': ^1.0.0-beta.2
|
||||
'@logto/react': ^1.0.0-beta.3
|
||||
'@logto/schemas': ^1.0.0-beta.8
|
||||
'@logto/shared': ^1.0.0-beta.8
|
||||
'@mdx-js/react': ^1.6.22
|
||||
|
@ -112,7 +112,7 @@ importers:
|
|||
'@fontsource/roboto-mono': 4.5.7
|
||||
'@logto/phrases': link:../phrases
|
||||
'@logto/phrases-ui': link:../phrases-ui
|
||||
'@logto/react': 1.0.0-beta.2_react@18.2.0
|
||||
'@logto/react': 1.0.0-beta.3_react@18.2.0
|
||||
'@logto/schemas': link:../schemas
|
||||
'@logto/shared': link:../shared
|
||||
'@mdx-js/react': 1.6.22_react@18.2.0
|
||||
|
@ -327,7 +327,7 @@ importers:
|
|||
packages/demo-app:
|
||||
specifiers:
|
||||
'@logto/phrases': ^1.0.0-beta.8
|
||||
'@logto/react': ^1.0.0-beta.2
|
||||
'@logto/react': ^1.0.0-beta.3
|
||||
'@logto/schemas': ^1.0.0-beta.8
|
||||
'@logto/shared': ^1.0.0-beta.8
|
||||
'@parcel/core': 2.7.0
|
||||
|
@ -353,7 +353,7 @@ importers:
|
|||
typescript: ^4.7.4
|
||||
devDependencies:
|
||||
'@logto/phrases': link:../phrases
|
||||
'@logto/react': 1.0.0-beta.2_react@18.2.0
|
||||
'@logto/react': 1.0.0-beta.3_react@18.2.0
|
||||
'@logto/schemas': link:../schemas
|
||||
'@logto/shared': link:../shared
|
||||
'@parcel/core': 2.7.0
|
||||
|
@ -1692,7 +1692,6 @@ packages:
|
|||
pacote: 13.4.1
|
||||
semver: 7.3.7
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -1723,7 +1722,6 @@ packages:
|
|||
p-waterfall: 2.1.1
|
||||
semver: 7.3.7
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -1864,7 +1862,6 @@ packages:
|
|||
whatwg-url: 8.7.0
|
||||
yargs-parser: 20.2.4
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2062,7 +2059,6 @@ packages:
|
|||
npm-registry-fetch: 9.0.0
|
||||
npmlog: 4.1.2
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2092,7 +2088,6 @@ packages:
|
|||
pify: 5.0.0
|
||||
read-package-json: 3.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2131,7 +2126,6 @@ packages:
|
|||
npmlog: 4.1.2
|
||||
tar: 6.1.11
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2230,7 +2224,6 @@ packages:
|
|||
pacote: 13.4.1
|
||||
semver: 7.3.7
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: true
|
||||
|
@ -2276,7 +2269,6 @@ packages:
|
|||
'@npmcli/run-script': 3.0.2
|
||||
npmlog: 4.1.2
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2378,7 +2370,6 @@ packages:
|
|||
slash: 3.0.0
|
||||
write-json-file: 4.3.0
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: true
|
||||
|
@ -2449,8 +2440,8 @@ packages:
|
|||
dev: true
|
||||
optional: true
|
||||
|
||||
/@logto/browser/1.0.0-beta.2:
|
||||
resolution: {integrity: sha512-CdXNfauE4Nf2AkRwZO4IH0Dlyx7PDQAFvtzpqEaszRKuFY0yuMi8H9QvtCoNxhuhxDnP3pwHKks6HFTBPT6EGw==}
|
||||
/@logto/browser/1.0.0-beta.3:
|
||||
resolution: {integrity: sha512-T1o3B1am3fIjCRvuvu5xczdQYNecVwSP34DMyFT8nlasHkANlnVl3W5EbEvCFCzZS0eVuZxNt5TNonuqvQRRaw==}
|
||||
dependencies:
|
||||
'@logto/client': 1.0.0-beta.3
|
||||
'@silverhand/essentials': 1.2.0
|
||||
|
@ -2490,12 +2481,12 @@ packages:
|
|||
- encoding
|
||||
dev: true
|
||||
|
||||
/@logto/react/1.0.0-beta.2_react@18.2.0:
|
||||
resolution: {integrity: sha512-g7j+pUnyv9ne71BihOniadNzoYsoRQAQDi/2uhafp52w6wQHTpDqAIPHltXknGNkCapPO4L+9dVDwMcSmKl50g==}
|
||||
/@logto/react/1.0.0-beta.3_react@18.2.0:
|
||||
resolution: {integrity: sha512-PdfA60RjC/2EMz+hDsdoZ7yWuGN4zIQw7ieI2HSgTxv4rhnC77I7tQ1upZDPiVoYD2bPWtfeXRbx6WcZbKFxbQ==}
|
||||
peerDependencies:
|
||||
react: '>=16.8.0 || ^18.0.0'
|
||||
dependencies:
|
||||
'@logto/browser': 1.0.0-beta.2
|
||||
'@logto/browser': 1.0.0-beta.3
|
||||
'@silverhand/essentials': 1.2.0
|
||||
react: 18.2.0
|
||||
dev: true
|
||||
|
@ -2608,7 +2599,6 @@ packages:
|
|||
treeverse: 2.0.0
|
||||
walk-up-path: 1.0.0
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2644,8 +2634,6 @@ packages:
|
|||
promise-retry: 2.0.1
|
||||
semver: 7.3.7
|
||||
which: 2.0.2
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
dev: true
|
||||
|
||||
/@npmcli/installed-package-contents/1.0.7:
|
||||
|
@ -2676,7 +2664,6 @@ packages:
|
|||
pacote: 13.4.1
|
||||
semver: 7.3.7
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -2728,7 +2715,6 @@ packages:
|
|||
node-gyp: 9.0.0
|
||||
read-package-json-fast: 2.0.3
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -3781,7 +3767,6 @@ packages:
|
|||
stylelint-config-xo-scss: 0.15.0_eqpuutlgonckfyjzwkrpusdvaa
|
||||
transitivePeerDependencies:
|
||||
- eslint
|
||||
- eslint-import-resolver-webpack
|
||||
- postcss
|
||||
- prettier
|
||||
- supports-color
|
||||
|
@ -3802,7 +3787,6 @@ packages:
|
|||
stylelint-config-xo-scss: 0.15.0_uyk3cwxn3favstz4untq233szu
|
||||
transitivePeerDependencies:
|
||||
- eslint
|
||||
- eslint-import-resolver-webpack
|
||||
- postcss
|
||||
- prettier
|
||||
- supports-color
|
||||
|
@ -3826,7 +3810,7 @@ packages:
|
|||
eslint-import-resolver-typescript: 3.4.0_jatgrcxl4x7ywe7ak6cnjca2ae
|
||||
eslint-plugin-consistent-default-export-name: 0.0.15
|
||||
eslint-plugin-eslint-comments: 3.2.0_eslint@8.21.0
|
||||
eslint-plugin-import: 2.26.0_klqlxqqxnpnfpttri4irupweri
|
||||
eslint-plugin-import: 2.26.0_eslint@8.21.0
|
||||
eslint-plugin-no-use-extend-native: 0.5.0
|
||||
eslint-plugin-node: 11.1.0_eslint@8.21.0
|
||||
eslint-plugin-prettier: 4.2.1_h62lvancfh4b7r6zn2dgodrh5e
|
||||
|
@ -3836,7 +3820,6 @@ packages:
|
|||
eslint-plugin-unused-imports: 2.0.0_i7ihj7mda6acsfp32zwgvvndem
|
||||
prettier: 2.7.1
|
||||
transitivePeerDependencies:
|
||||
- eslint-import-resolver-webpack
|
||||
- supports-color
|
||||
- typescript
|
||||
dev: true
|
||||
|
@ -5403,8 +5386,6 @@ packages:
|
|||
ssri: 8.0.1
|
||||
tar: 6.1.11
|
||||
unique-filename: 1.1.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
dev: true
|
||||
|
||||
/cacache/16.1.0:
|
||||
|
@ -5429,8 +5410,6 @@ packages:
|
|||
ssri: 9.0.1
|
||||
tar: 6.1.11
|
||||
unique-filename: 1.1.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
dev: true
|
||||
|
||||
/cache-content-type/1.0.1:
|
||||
|
@ -5943,8 +5922,8 @@ packages:
|
|||
engines: {node: '>=10'}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
JSONStream: 1.3.5
|
||||
is-text-path: 1.0.1
|
||||
JSONStream: 1.3.5
|
||||
lodash: 4.17.21
|
||||
meow: 8.1.2
|
||||
split2: 3.2.2
|
||||
|
@ -6234,38 +6213,16 @@ packages:
|
|||
|
||||
/debug/2.6.9:
|
||||
resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
|
||||
peerDependencies:
|
||||
supports-color: '*'
|
||||
peerDependenciesMeta:
|
||||
supports-color:
|
||||
optional: true
|
||||
dependencies:
|
||||
ms: 2.0.0
|
||||
dev: true
|
||||
|
||||
/debug/3.2.7:
|
||||
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
||||
peerDependencies:
|
||||
supports-color: '*'
|
||||
peerDependenciesMeta:
|
||||
supports-color:
|
||||
optional: true
|
||||
dependencies:
|
||||
ms: 2.1.3
|
||||
dev: true
|
||||
|
||||
/debug/3.2.7_supports-color@5.5.0:
|
||||
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
||||
peerDependencies:
|
||||
supports-color: '*'
|
||||
peerDependenciesMeta:
|
||||
supports-color:
|
||||
optional: true
|
||||
dependencies:
|
||||
ms: 2.1.3
|
||||
supports-color: 5.5.0
|
||||
dev: true
|
||||
|
||||
/debug/4.3.3:
|
||||
resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==}
|
||||
engines: {node: '>=6.0'}
|
||||
|
@ -6797,8 +6754,6 @@ packages:
|
|||
dependencies:
|
||||
debug: 3.2.7
|
||||
resolve: 1.22.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-import-resolver-typescript/3.4.0_jatgrcxl4x7ywe7ak6cnjca2ae:
|
||||
|
@ -6811,7 +6766,7 @@ packages:
|
|||
debug: 4.3.4
|
||||
enhanced-resolve: 5.10.0
|
||||
eslint: 8.21.0
|
||||
eslint-plugin-import: 2.26.0_klqlxqqxnpnfpttri4irupweri
|
||||
eslint-plugin-import: 2.26.0_eslint@8.21.0
|
||||
get-tsconfig: 4.2.0
|
||||
globby: 13.1.2
|
||||
is-core-module: 2.9.0
|
||||
|
@ -6821,31 +6776,12 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-module-utils/2.7.3_dirjbmf3bsnpt3git34hjh5rju:
|
||||
/eslint-module-utils/2.7.3:
|
||||
resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==}
|
||||
engines: {node: '>=4'}
|
||||
peerDependencies:
|
||||
'@typescript-eslint/parser': '*'
|
||||
eslint-import-resolver-node: '*'
|
||||
eslint-import-resolver-typescript: '*'
|
||||
eslint-import-resolver-webpack: '*'
|
||||
peerDependenciesMeta:
|
||||
'@typescript-eslint/parser':
|
||||
optional: true
|
||||
eslint-import-resolver-node:
|
||||
optional: true
|
||||
eslint-import-resolver-typescript:
|
||||
optional: true
|
||||
eslint-import-resolver-webpack:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq
|
||||
debug: 3.2.7
|
||||
eslint-import-resolver-node: 0.3.6
|
||||
eslint-import-resolver-typescript: 3.4.0_jatgrcxl4x7ywe7ak6cnjca2ae
|
||||
find-up: 2.1.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-consistent-default-export-name/0.0.15:
|
||||
|
@ -6878,24 +6814,19 @@ packages:
|
|||
ignore: 5.2.0
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-import/2.26.0_klqlxqqxnpnfpttri4irupweri:
|
||||
/eslint-plugin-import/2.26.0_eslint@8.21.0:
|
||||
resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==}
|
||||
engines: {node: '>=4'}
|
||||
peerDependencies:
|
||||
'@typescript-eslint/parser': '*'
|
||||
eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
|
||||
peerDependenciesMeta:
|
||||
'@typescript-eslint/parser':
|
||||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq
|
||||
array-includes: 3.1.4
|
||||
array.prototype.flat: 1.2.5
|
||||
debug: 2.6.9
|
||||
doctrine: 2.1.0
|
||||
eslint: 8.21.0
|
||||
eslint-import-resolver-node: 0.3.6
|
||||
eslint-module-utils: 2.7.3_dirjbmf3bsnpt3git34hjh5rju
|
||||
eslint-module-utils: 2.7.3
|
||||
has: 1.0.3
|
||||
is-core-module: 2.9.0
|
||||
is-glob: 4.0.3
|
||||
|
@ -6903,10 +6834,6 @@ packages:
|
|||
object.values: 1.1.5
|
||||
resolve: 1.22.0
|
||||
tsconfig-paths: 3.14.1
|
||||
transitivePeerDependencies:
|
||||
- eslint-import-resolver-typescript
|
||||
- eslint-import-resolver-webpack
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-no-use-extend-native/0.5.0:
|
||||
|
@ -10080,7 +10007,6 @@ packages:
|
|||
import-local: 3.1.0
|
||||
npmlog: 4.1.2
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: true
|
||||
|
@ -10115,7 +10041,6 @@ packages:
|
|||
npm-package-arg: 8.1.5
|
||||
npm-registry-fetch: 11.0.0
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -10129,7 +10054,6 @@ packages:
|
|||
semver: 7.3.7
|
||||
ssri: 8.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -10434,7 +10358,6 @@ packages:
|
|||
socks-proxy-agent: 6.1.1
|
||||
ssri: 9.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -10458,7 +10381,6 @@ packages:
|
|||
socks-proxy-agent: 5.0.1
|
||||
ssri: 8.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -10483,7 +10405,6 @@ packages:
|
|||
socks-proxy-agent: 6.1.1
|
||||
ssri: 8.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -11384,7 +11305,6 @@ packages:
|
|||
tar: 6.1.11
|
||||
which: 2.0.2
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -11419,7 +11339,7 @@ packages:
|
|||
requiresBuild: true
|
||||
dependencies:
|
||||
chokidar: 3.5.3
|
||||
debug: 3.2.7_supports-color@5.5.0
|
||||
debug: 3.2.7
|
||||
ignore-by-default: 1.0.1
|
||||
minimatch: 3.1.2
|
||||
pstree.remy: 1.1.8
|
||||
|
@ -11568,7 +11488,6 @@ packages:
|
|||
minizlib: 2.1.2
|
||||
npm-package-arg: 8.1.5
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -11584,7 +11503,6 @@ packages:
|
|||
npm-package-arg: 9.0.2
|
||||
proc-log: 2.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -11601,7 +11519,6 @@ packages:
|
|||
minizlib: 2.1.2
|
||||
npm-package-arg: 8.1.5
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -12007,7 +11924,6 @@ packages:
|
|||
ssri: 9.0.1
|
||||
tar: 6.1.11
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
|
@ -12732,11 +12648,6 @@ packages:
|
|||
|
||||
/promise-inflight/1.0.1:
|
||||
resolution: {integrity: sha1-mEcocL8igTL8vdhoEputEsPAKeM=}
|
||||
peerDependencies:
|
||||
bluebird: '*'
|
||||
peerDependenciesMeta:
|
||||
bluebird:
|
||||
optional: true
|
||||
dev: true
|
||||
|
||||
/promise-retry/2.0.1:
|
||||
|
|
Loading…
Reference in a new issue