Skip to content

Commit

Permalink
feat(#821): Unify local and refresh providers into one (#822)
Browse files Browse the repository at this point in the history
* updated types to match new refresh / local provider logic

* removed playground for refresh provider, began updating useAuthState logic for local to handle refresh tokens

* finished merging local and refresh providers

* removed tests for refresh playground

* change the tsconfig to inherit the local playground tsconfig

* fix: types

* Apply suggestions from code review

* fix: remove refresh test ci

* fix: improve signOut body composition

* added remark about refeshToken being null if refresh.isEnabled is false

* Also added jsdoc for internal UseAuthReturn type

* Added types for refresh cookie httpOnly flag and improved JSDocs for it

* updated outdated doc links

* improve jsdocs on refreshOnlyToken

* fix: build

* chore: minor adjustments

* removed left over package.json

* enh: use json pointer for signout request

---------

Co-authored-by: Marsel Shayhin <[email protected]>
Co-authored-by: Marsel Shaikhin <[email protected]>
  • Loading branch information
3 people authored Aug 22, 2024
1 parent 355e865 commit b09b14e
Show file tree
Hide file tree
Showing 34 changed files with 307 additions and 1,030 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,37 +96,6 @@ jobs:
- name: Run Playwright tests using Vitest
run: pnpm test:e2e

test-playground-refresh:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./playground-refresh
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Use Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
cache: 'pnpm'

- name: Install deps
run: pnpm i

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

# Check building
- run: pnpm build

- name: Run Playwright tests using Vitest
run: pnpm test:e2e

test-playground-authjs:
runs-on: ubuntu-latest
defaults:
Expand Down
5 changes: 0 additions & 5 deletions playground-refresh/.gitignore

This file was deleted.

60 changes: 0 additions & 60 deletions playground-refresh/app.vue

This file was deleted.

17 changes: 0 additions & 17 deletions playground-refresh/config/AuthRefreshHandler.ts

This file was deleted.

43 changes: 0 additions & 43 deletions playground-refresh/nuxt.config.ts

This file was deleted.

29 changes: 0 additions & 29 deletions playground-refresh/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions playground-refresh/pages/always-unprotected.vue

This file was deleted.

15 changes: 0 additions & 15 deletions playground-refresh/pages/guest.vue

This file was deleted.

34 changes: 0 additions & 34 deletions playground-refresh/pages/index.vue

This file was deleted.

6 changes: 0 additions & 6 deletions playground-refresh/pages/protected/globally.vue

This file was deleted.

14 changes: 0 additions & 14 deletions playground-refresh/pages/protected/locally.vue

This file was deleted.

8 changes: 0 additions & 8 deletions playground-refresh/pages/signout.vue

This file was deleted.

16 changes: 0 additions & 16 deletions playground-refresh/pages/with-caching.vue

This file was deleted.

77 changes: 0 additions & 77 deletions playground-refresh/playwright.config.ts

This file was deleted.

Binary file removed playground-refresh/public/favicon.ico
Binary file not shown.
Loading

0 comments on commit b09b14e

Please sign in to comment.