Skip to content

Commit 84bdb59

Browse files
committed
fix the rebase issue
1 parent 6b1178d commit 84bdb59

File tree

1 file changed

+4
-4
lines changed
  • packages/commerce-sdk-react/src/auth

1 file changed

+4
-4
lines changed

packages/commerce-sdk-react/src/auth/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,16 +1278,16 @@ class Auth {
12781278
* A wrapper method for commerce-sdk-isomorphic helper: authorizePasswordless.
12791279
*/
12801280
async authorizePasswordless(parameters: AuthorizePasswordlessParams) {
1281-
const slasClient = this.client
12821281
const usid = this.get('usid')
12831282
// Default to 'callback' mode for backward compatibility as older versions of the template-retail-react-app
12841283
// do not pass the mode parameter. Newer versions should explicitly pass the mode.
12851284
const mode = parameters.mode || 'callback'
12861285
const callbackURI = parameters.callbackURI || this.passwordlessLoginCallbackURI
12871286

1288-
const options = {
1289-
headers: {
1290-
Authorization: ''
1287+
const res = await helpers.authorizePasswordless({
1288+
slasClient: this.client,
1289+
credentials: {
1290+
clientSecret: this.clientSecret
12911291
},
12921292
parameters: {
12931293
...(callbackURI && {callbackURI}),

0 commit comments

Comments
 (0)