My Apps
You must be logged in to view this page.
Login with HytaleHub
To use the "Login with HytaleHub" functionality on your website, first
create an app.
Frontend
Include the following script on your site.
<script src="https://hytalehub.com/login-with-hytalehub.js"></script>
Then use the HH_createLoginButton function on any element to turn it into a login button.
HH_createLoginButton("#myButton", "your app id", callback);
You can also use the HH_createSignupButton function on any element to turn it into a sign up button.
HH_createSignupButton("#myButton", "your app id", callback);
You can get your app ID from the "My Apps" section of this page.
When a button is pressed, a popup window will appear for the user.
The callback function will be executed after the popup window is closed.
Backend
You can set up the redirect link in your app settings.
If the user grants access, the following will be sent to the redirect link by a POST request.
{
"access": true,
"secret": "your app secret key for verification",
"ip": "user's ip address",
"user_id": 1000,
"user_name": "Example",
"email": "[email protected]",
}