@sexycoders/libauth.js
Version:
A full service for asymetric passwordless authentication.
21 lines (17 loc) • 406 B
JavaScript
function MOVE(location,param,cors_flag)
{
if(cors_flag)
cors_flag=0;
else
{
var t=window.__auth_system;
t.pRSA="FORBIDEN";
t=btoa(JSON.stringify(t.user));
t=new URLSearchParams(t).toString()
var dest=location+"?__auth_move="+t;
if(param)
window.open(dest);
else
window.location.replace(dest);
}
}