On social login how to redirect to an url and not an page in backendless
Specify a page in Backendless in the redirect page
argument in the OAuth user login
block and in that page do a redirect to the URL you need.
Hi @mark-piller
Actually after OAuth
in get current user obeject there is no user-token field
- accountType: “OAUTH”
- blUserLocale: “en”
- created: 1644396091000
- email: “…”
- id: “…”
- lastLogin: 1644535519000
- name:
- oAuthIdentities: [{
displayName: “…”
oAuthId: “…”
providerCode: “googleplus”
}] - objectId: “…”
- ownerId: “…”
- phoneNumber: null
- socialAccount: “OAUTH”
- updated: 1644396091000
- userStatus: “ENABLED”
- ___class: “Users”
I just checked, you’re correct. Here’s how you can get that information. First, use this block:
Click, the gear icon:
Make sure to select “Return result” and add the following code:
Here’s the text version of that line of code:
return Backendless.LocalCache.get("user-token");
Regards,
Mark
Add the code first and make sure to select the “Return result” checkbox.
Good job!