Open zaosoula opened 4 months ago
Name | Link |
---|---|
Latest commit | f6c37a66f2de4ddb7e2cbf551275ff593ddf2c9f |
Latest deploy log | https://app.netlify.com/sites/astounding-pegasus-21c111/deploys/665df5567170e00008b4342e |
Name | Link |
---|---|
Latest commit | f6c37a66f2de4ddb7e2cbf551275ff593ddf2c9f |
Latest deploy log | https://app.netlify.com/sites/precious-marshmallow-968a81/deploys/665df556ca13910008268a04 |
@rishabhpoddar Here is the pr, unfortunatly I'm unable to launch the test env for now, so if you can give it a try
@zaosoula i'll probably try it out later today or sometime this week. In the meantime, you can use your forked version of the sdk instead of the one from npm in your app and see if it works well. Also, you may have to make a similar change to the frontend sdk as well cause that too has the same normalised domain class
Hey @ellipsis, give me a code review
OK! Reviewing this PR...
Responding to this comment by @rishabhpoddar. For more information about Ellipsis, check the documentation.
@rishabhpoddar I fixed the issues
(@ellipsis-dev)
Summary of change
Refactor the code of normaliseUrlDomainOrThrowError to accept schemes other than http://, https://, supertokens:// (A few sentences about this PR)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.json
file has been updated (if needed)lib/ts/version.ts
frontendDriverInterfaceSupported.json
file has been updated (if needed)package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
recipe/thirdparty/providers/configUtils.ts
file,createProvider
function.git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.add-ts-no-check.js
file to include thatsomeFunc: function () {..}
).Remaining TODOs for this PR
Summary:
The PR modifies the
normaliseURLDomainOrThrowError
function to accept URL schemes other thanhttp://
,https://
, andsupertokens://
, by adding a default protocol if none is provided, and returning the URL string with the appropriate protocol and host.Key points:
normaliseURLDomainOrThrowError
function in/lib/build/normalisedURLDomain.js
and/lib/ts/normalisedURLDomain.ts
files.localhost
or is an IP address,http://
is added. Otherwise,https://
is added.Generated with :heart: by ellipsis.dev