-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
Goals
I'm trying to reset user password using emailPasswordAuth.resetPassword.
Expected Results
User password is reset.
Actual Results
There is an error when using emailPasswordAuth.resetPassword
TypeError: Only absolute URLs are supported at getNodeRequestOptions (/Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/node-fetch/lib/index.js:1305:9) at /Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/node-fetch/lib/index.js:1410:20 at new Promise (<anonymous>) at Function.fetch (/Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/node-fetch/lib/index.js:1407:9) at DefaultNetworkTransport.fetch (/Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/realm-web/dist/bundle.cjs.js:238:50) at Fetcher.fetch (/Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/realm-web/dist/bundle.cjs.js:2671:51) at Fetcher.fetchJSON (/Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/realm-web/dist/bundle.cjs.js:2721:37) at EmailPasswordAuth.resetPassword (/Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/node_modules/realm-web/dist/bundle.cjs.js:1006:28) at /Users/flieswithwind/Documents/Yepum/yepum-user-rest-api/app.js:210:30 at processTicksAndRejections (internal/process/task_queues.js:97:5) {stack: 'TypeError: Only absolute URLs are supported …ctions (internal/process/task_queues.js:97:5)', message: 'Only absolute URLs are supported'}
Code Sample
realmApp.emailPasswordAuth.resetPassword(token, tokenId, password).then( result =>{ return res.json({status: 'ok', message: 'Password reset. Please login with your new password.'}); }).catch( error => { console.log(error) return res.json({status: 'error', message: error.message}); })
Version of Realm and Tooling
- Realm Web SDK Version: 0.9.0 and 1.0.0-RC1
- Node: v12.16.3