remove params after they are loaded
diff --git a/init.js b/init.js
index 3eeb315..c8ce87d 100644
--- a/init.js
+++ b/init.js
@@ -80,6 +80,7 @@
//the dtps client must not be embedded for dtps.authenticate to work
dtps.authenticate = function (cb) {
var params = dtps.getParams();
+ window.history.replaceState(null, null, window.location.pathname);
if (params.code && (params.state == window.localStorage.authState)) {
dtps.webReq("backend", "/login/oauth2/token?client_id=" + dtps.auth.client_id + "&redirect_uri=" + dtps.auth.uri + "&grant_type=authorization_code&code=" + params.code, function (res) {
console.log(JSON.parse(res));