diff --git a/src/plugins/GoogleDrive.js b/src/plugins/GoogleDrive.js index f83b71031..8e22943b1 100644 --- a/src/plugins/GoogleDrive.js +++ b/src/plugins/GoogleDrive.js @@ -210,11 +210,15 @@ export default class Google extends Plugin { * Render user authentication view */ renderAuth () { - const link = `${this.opts.host}/connect/google?state=${location.href}` + const state = btoa(JSON.stringify({ + redirect: location.href + })) + + const link = `${this.opts.host}/connect/google?state=${state}` return yo`
` }