-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #14 ### Features - Default in-memory storage for access token can be now overridden by providing the `accessTokenStorage` argument in `SaleorAuthClient` - This enables support for server-side auth flows where access token is stored in cookies - New export path is added: `@saleor/auth-sdk/next/server` that exports `getNextServerCookiesStorage` meant for best compatibility with Next.js 13+ App Router. See [this example for details](https://github.com/saleor/example-auth-sdk/blob/5babda35969c35f423680b47d1446466b18b2461/app/ssr/page.tsx#L14-L18). ### BREAKING CHANGES - `storage` argument in `SaleorAuthClient` has been renamed to `refreshTokenStorage`
- Loading branch information
Showing
12 changed files
with
722 additions
and
680 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
name: QA | ||
name: Build, TypeScripts, tests | ||
on: | ||
pull_request: | ||
merge_group: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: tests-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
- name: Install PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
version: 8.10.0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
node-version-file: package.json | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm --version && pnpm install --frozen-lockfile | ||
|
||
- name: Lint | ||
run: pnpm lint:ci | ||
|
||
- name: Test | ||
run: CI=true pnpm test | ||
- name: Run tests | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.