File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/commerce-sdk-react/src/auth Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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} ) ,
You can’t perform that action at this time.
0 commit comments