-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add params to override the login and authorize paths (#2648)
* Add params to override the login and authorize paths * Update packages/hydrogen/src/customer/customer.ts Co-authored-by: Helen Lin <[email protected]> --------- Co-authored-by: Helen Lin <[email protected]>
- Loading branch information
1 parent
f88f4a0
commit 91d60fd
Showing
3 changed files
with
35 additions
and
11 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,16 @@ | ||
--- | ||
'@shopify/hydrogen': patch | ||
--- | ||
|
||
Add params to override the login and authorize paths: | ||
|
||
```ts | ||
const hydrogenContext = createHydrogenContext({ | ||
// ... | ||
customerAccount: { | ||
loginPath = '/account/login', | ||
authorizePath = '/account/authorize', | ||
defaultRedirectPath = '/account', | ||
}, | ||
}); | ||
``` |
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
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