diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d0dd9904..026adb55 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VER }} - cache: 'pnpm' + cache: "pnpm" - name: Install deps and prepare types run: pnpm i && pnpm dev:prepare @@ -56,7 +56,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VER }} - cache: 'pnpm' + cache: "pnpm" - name: Install deps and prepare types run: pnpm i && pnpm dev:prepare @@ -82,7 +82,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VER }} - cache: 'pnpm' + cache: "pnpm" - name: Install deps run: pnpm i @@ -93,7 +93,12 @@ jobs: # Check building - run: pnpm build - - name: Run Playwright tests using Vitest + - name: Run Playwright tests using Vitest with refresh disabled + run: pnpm test:e2e + env: + NUXT_AUTH_REFRESH_ENABLED: false + + - name: Run Playwright tests using Vitest with refresh enabled run: pnpm test:e2e test-playground-authjs: @@ -113,7 +118,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VER }} - cache: 'pnpm' + cache: "pnpm" - name: Install deps run: pnpm i diff --git a/playground-local/app.vue b/playground-local/app.vue index 6ccd2788..1f770a6f 100644 --- a/playground-local/app.vue +++ b/playground-local/app.vue @@ -4,8 +4,8 @@ import { useAuth } from '#imports' const { signIn, token, refreshToken, data, status, lastRefreshedAt, signOut, getSession } = useAuth() -const username = ref('') -const password = ref('') +const username = ref('smith') +const password = ref('hunter2')