Commit 7a745b19 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Fix getState not encoding correctly.

parent 547201c8
...@@ -10,9 +10,9 @@ object OauthHelper { ...@@ -10,9 +10,9 @@ object OauthHelper {
* Returns an unguessable random string used to protect against forgery attacks. * Returns an unguessable random string used to protect against forgery attacks.
*/ */
fun getState() = fun getState() =
"{\"loginStyle\":\"popup\"," + ("{\"loginStyle\":\"popup\"," +
"\"credentialToken\":\"${generateRandomString(40)}\"," + "\"credentialToken\":\"${generateRandomString(40)}\"," +
"\"isCordova\":true}".encodeToBase64() "\"isCordova\":true}").encodeToBase64()
/** /**
* Returns the Github Oauth URL. * Returns the Github Oauth URL.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment