You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: auth/README.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -141,13 +141,12 @@ Here is where things start getting hard since there's no official documentation.
141
141
2. This success page contains a `code` in its URL, thankfully we won't need to parse the code, only check if it exists.
142
142
3. The success page URL varies its form depending on the provider that was used.
143
143
144
-
* Facebook success URL code =`?code=`
145
-
* Twitter success URL code =`?state=`
146
-
* Google success URL code =`#state=`
144
+
* Facebook success URL code:`?code=`
145
+
* Twitter success URL code:`?state=`
146
+
* Google success URL code:`#state=`
147
147
148
-
In the previous snippet, a conditional was added to detect if the code exists in any of the 3 providers previously mentioned.
149
-
150
-
4. Once we have an URL that contains the `code` we save it to a String and then call our next function `getAccountInfo()`
148
+
In the previous snippet, a conditional was added to detect if the code exists in any of the 3 providers previously mentioned. It also checks that there isn't an error code in the URL.
149
+
Once we have an URL that contains the `code` we save it to a String and then call our next function `getAccountInfo()`
0 commit comments