The specified redirect_uri file:/// does not have a registered origin

Hi, I’m trying to refresh the tokens using checkSession. However, it keeps failing on cordova and electron because I can’t use file as an origin. Is there any way you can allow the file protocol for the web message flow? I am given to understand that postMessage will work on the file protocol if you pass the targetOrigin as ‘*’.