这是indexloc提供的服务,不要输入任何密码
Skip to content

fix (FetchToken): Fix FetchToken param to be boolean instead of false (release) #1414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

jafin
Copy link
Contributor

@jafin jafin commented Jul 13, 2024

Change type of param to boolean (default: false) to resolve compile error:

packages/react-oidc prepare: src/FetchToken.tsx:12:48 - error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'false'.
packages/react-oidc prepare: 12   const newFetch = oidc.fetchWithTokens(fetch, demonstrating_proof_of_possession);

https://github.com/AxaFrance/oidc-client/actions/runs/9913967120/job/27392088934#step:6:121

Resolves:

```text
packages/react-oidc prepare: src/FetchToken.tsx:12:48 - error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'false'.
packages/react-oidc prepare: 12   const newFetch = oidc.fetchWithTokens(fetch, demonstrating_proof_of_possession);
```
Copy link
Contributor

@guillaume-chervet guillaume-chervet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jafin again !

@guillaume-chervet guillaume-chervet changed the title fix (FetchToken): Fix FetchToken param to be boolean instead of false fix (FetchToken): Fix FetchToken param to be boolean instead of false (release) Jul 14, 2024
@guillaume-chervet guillaume-chervet merged commit a46b1aa into AxaFrance:main Jul 14, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants