How to call logout from other component and from other page url.
tufail opened this issue · 3 comments
tufail commented
How to call logout from other component and from other page url.
Say: I have a login page with social button ( facebook login )-> clicking on this login success -> landed on dashboard ->then I need to put logout link in navigation ..
Here I am missing doc how to logout the facebook because we can not ref to that button as it is not here in dashboard.
please help me
deepakaggarwal7 commented
SocialLogin is simply a bridge to native SDKs. To call logout from a page
which doesn't have SocialLogin, you can try invoking SDK's logout like
window.FB.logout(()=>{handloe logout event here})
…On Wed, Sep 30, 2020 at 4:31 PM Tufail Shaikh ***@***.***> wrote:
How to call logout from other component and from other page url.
Say: I have a login page with social button ( facebook login )-> clicking
on this login success -> landed on dashboard ->then I need to put logout
link in navigation ..
Here I am missing doc how to logout the facebook because we can not ref to
that button as it not here in dashboard.
please help me
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#174>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEU7A3HTEAKTE76UQJWBTD3SIMFXHANCNFSM4R66DJVQ>
.
rivaslive commented
I have this same error, using Nextjs, when I start session I can see FB and gapi redeference in window, but when I reload these references they disappear, I think it would be great if you could provide a function like ʻimport SocialLogin, {onLogout} from "react-social -login ";` to easily log out from anywhere
thanhtoan1196 commented
@rivaslive I agree with you