Skip to content

Commit

Permalink
Update packages/hydrogen/src/customer/customer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bret Little <bret.little@shopify.com>
  • Loading branch information
michenly and blittle authored Jan 17, 2024
1 parent bafa7c8 commit de2c52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hydrogen/src/customer/customer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface CustomerAccountMutations {
export type CustomerClient = {
/** Start the OAuth login flow. This function should be called and returned from a Remix action. It redirects the user to a login domain. An optional `redirectPath` parameter defines the final path the user lands on at the end of the oAuth flow. It defaults to `/`. */
login: (redirectBack?: string) => Promise<Response>;
/** On successful login, the user is redirect back to your app. This function validates the OAuth response and exchanges the authorization code for an access token and refresh token. It also persists the tokens on your session. This function should be called and returned from the Remix loader configured as the redirect URI within the Customer Account API settings. Optional redirectBack path can be pass in to redirect back at the end of oAuth. redirectBack from login will take precedent. */
/** On successful login, the user redirects back to your app. This function validates the OAuth response and exchanges the authorization code for an access token and refresh token. It also persists the tokens on your session. This function should be called and returned from the Remix loader configured as the redirect URI within the Customer Account API settings. */
authorize: (redirectBack?: string) => Promise<Response>;
/** Returns if the user is logged in. It also checks if the access token is expired and refreshes it if needed. */
isLoggedIn: () => Promise<boolean>;
Expand Down

0 comments on commit de2c52c

Please sign in to comment.