-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #480 from Shopify/v3_authenticate_public
V3 authenticate public
- Loading branch information
Showing
8 changed files
with
272 additions
and
147 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
'@shopify/shopify-app-remix': minor | ||
--- | ||
|
||
Added v3_authenticatePublic feature flag to remove `authenticate.public(request)`. | ||
|
||
Apps can opt in to the new future at any time, so this is not a breaking change until version 3. | ||
|
||
<details> | ||
<summary>See an example</summary> | ||
|
||
Without the `v3_authenticatePublic` future flag the deprecated `authenticate.public(request)` is supported: | ||
|
||
```ts | ||
await authenticate.public.checkout(request); | ||
await authenticate.public.appProxy(request); | ||
|
||
// Deprecated. Use authenticate.public.checkout(request) instead | ||
await authenticate.public(request); | ||
``` | ||
|
||
With the `v3_authenticatePublic` future flag enabled the deprecated `authenticate.public(request)` is not supported: | ||
|
||
```ts | ||
await authenticate.public.checkout(request); | ||
await authenticate.public.appProxy(request); | ||
``` | ||
|
||
</details> |
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.