Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kinde-oss/kinde-auth-pkce-js

kinde-oss24.8kMIT4.3.0TypeScript support: included

Kinde PKCE authentication for SPAs

Kinde, login, Authorization Code Grant Flow, PKCE, Single Page Application authentication, SPA authentication

readme

Kinde JavaScript

The Kinde SDK for JavaScript.

You can also use the JavaScript starter kit here.

PRs Welcome Kinde Docs Kinde Community

Documentation

Please refer to the Kinde Javacript SDK document.

Publishing

The core team handles publishing.

To publish a new package version, use the “Release and Publish to NPM” action in the “Actions” tab.

Contributing

Please refer to Kinde’s contributing guidelines.

License

By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.

changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

4.2.3

  • Merge pull request #79 from kinde-oss/fix/token-active-check 521a893
  • fix: token active check ac3d7b1
  • ci: bump setup node f5dc9ba

4.2.2

27 September 2024

  • fix: audience check when checking specific #75
  • chore: release v4.2.2 63fc131
  • chore: prettier c7622be

4.2.1

27 September 2024

  • fix: Expose more options for getToken and getIdToken to allow force r… #77
  • chore: release v4.2.1 6036573
  • fix: Expose more options for getToken and getIdToken to allow force refresh 58cdb3b

4.2.0

2 August 2024

  • fix: dont store user when no id token #74
  • chore: release v4.2.0 725c284

4.1.1

12 July 2024

  • [Critical] Fix refresh_token #73
  • chore: release v4.1.1 d6a648a
  • Fix refresh_token 271ab83

4.1.0

9 July 2024

  • Prevent unneeded calls to token endpoint #72
  • chore(deps-dev): bump braces from 3.0.2 to 3.0.3 #71
  • chore: release v4.1.0 f43af70
  • feat: add check for non httpOnly flag cookie 3ea585e
  • chore: bump version 45ec47a

4.0.0

9 July 2024

  • Changed audience check to check against each configured audience, updated tests #70
  • fix: build error #68
  • Add auth server error handling #67
  • Add options to getToken always force refresh #66
  • feat: add auth server error handling 6e12671
  • feat: add options to always force refresh c440f91
  • Changed audience check to check each confirued audience, and updated tests d3a2644

3.1.0

25 April 2024

  • chore: update prettier and format #65
  • fix: allow package to be required as "commonjs" module #64
  • chore: release v3.1.0 560ffd3

3.0.32

5 March 2024

  • Update start_page to spec prompt #63
  • chore: release v3.0.32 057eaa2
  • feat: update start_page to spec prompt 861c0dd

3.0.31

4 March 2024

  • Extra JWT checks #61
  • Improve DX - detect if localhost being used and use appropriate storage #62
  • chore(deps-dev): bump ip from 1.1.8 to 1.1.9 #60
  • feat: add additional jwt checks d57e2c8
  • chore: fix TS linting errors 735f52c
  • feat: update to use enum 5cdc9c6

3.0.30

22 January 2024

  • fix: restore raw token #59
  • chore: release v3.0.30 913d159

3.0.29

22 January 2024

  • Add getIdToken method #57
  • chore: release v3.0.29 968dfc4

3.0.28

18 January 2024

  • feat: allow multiple audiences #58
  • chore: release v3.0.28 b0e541f

3.0.27

20 November 2023

  • feat: add proxy_redirect_uri for capcaitor apps #55
  • chore: release v3.0.27 0158bd6

3.0.26

15 November 2023

  • Make options not required (Fixes Issue #53) #54
  • chore: release v3.0.26 d0d984e
  • make options not required b39ce6d

3.0.25

31 October 2023

  • Playground + decode improvements #52
  • chore: release v3.0.25 01397e6
  • feat: include decode lib for token cc5303d
  • feat: playground 3c87378

3.0.24

26 October 2023

3.0.23

26 October 2023

  • feat: add auth url params object #50
  • chore(deps-dev): bump @babel/traverse from 7.17.3 to 7.23.2 #49
  • chore: release v3.0.23 6673d22

3.0.22

26 September 2023

  • chore: release v3.0.22 12a13a9
  • fix: factor in trailing slash in redirect d647d11

3.0.21

25 September 2023

  • Enforce redirect uri match #48
  • Removing optional check param as it should always be matching be89a13
  • Reversed import order auto-change a986bdc
  • Added an optional enforce redirect uri match boolean to Kinde client options. b8e88a5

3.0.20

14 September 2023

  • Migration/typescript conversion #43
  • added missing type for isAuthenticated method in KindeClient type #45
  • created typescript setup for unit-testing with ts-jest 7127e3a
  • updated eslint, lint-staged and prettier setup for typescript 00fb05e
  • created two-step build process for rolling up compiler generated type declarations 2fed58e

3.0.19

30 August 2023

  • fix: circular dependency reported by rollup at build time #40
  • Created and exposed isAuthenticated method from SDK #38
  • fix: suppressed console.error logs when running tests #37
  • created and exposed isAuthenticated method from SDK d12b64c
  • chore: release v3.0.19 64a4c3a

3.0.18

10 August 2023

  • fix: update release-it dep #35
  • chore: release v3.0.18 d067c21

3.0.17

28 July 2023

  • Bump word-wrap from 1.2.3 to 1.2.4 #33
  • bug: fix getUserProfile type definition #34
  • bug: fix getUserProfile type definition #1
  • chore: Update readme.md 3e5021b
  • chore: release v3.0.17 8feeb0e

3.0.16

19 June 2023

  • fix: bug with token error #27
  • chore: release v3.0.16 9c19e2c

3.0.15

19 June 2023

  • Remove undefined start page #26
  • Bump vm2 from 3.9.17 to 3.9.19 #25
  • chore: release v3.0.15 6cc60c7
  • fix: remove undefined start page cfd6cce
  • chore: delete security.md 8af6f72

3.0.14

11 May 2023

  • Increase unit test coverage #23
  • test: add unit tests for core helpers 051470a
  • chore: release v3.0.14 57fbcef
  • cicd: add tests to release it edb4417

3.0.13

4 May 2023

  • chore: fix linting of ts #22
  • cicd with gh actions #21
  • Missing types and user profile method #20
  • add types to flag helpers #17
  • Bump json5 from 2.2.0 to 2.2.3 #14
  • Feature flag helper methods #16
  • Add pic to user obj #15
  • Bump minimist from 1.2.5 to 1.2.7 #13
  • Add MIT licence #12
  • Minor TS improvements #11
  • types #10
  • remove item from memory #9
  • Move to memory #8
  • ci: add release it 232393f
  • update rollup and make types public 775148a
  • add appstate and audience 00eac43

v0.0.10

1 July 2022

  • Peter/org code #6
  • include org id #5
  • options with create org 4a7564c
  • options include organization id 1491632
  • allow for org_code 285507c

v0.0.6

21 April 2022

  • Peter/logout endpoint #4
  • logout endpoint 06e8cba

v0.0.5

20 April 2022

  • version update #3
  • include logout uri #2

v0.0.4

28 March 2022

v0.0.2

28 March 2022

v0.0.1

11 March 2022