Users may authenticate with Oahu using their Facebook and / or Twitter account. If a User has already been authenticated on a web page using Oahu connect, his authentication will be automatic as soon as Oahu.js loads.
The login box
Users can login ang logout through a login box that is displayed on the top of the webpage. To open this box, just call the following :
The login box shows a logout button when the user is logged in. However, it is also possible to logout by calling the following :
Note: Loging out only affects the Oahu session. Facebook and Twitter cookies are not modified.
Get login status
You may, at some point, want to know the login status of a User on a specific provider. It can be done by calling :
Will return true if the user is logged in with Oahu and his Facebook account is active.