by Overwolf
  • Nitro
  • Publishers
    PUBLISHERS
    How it Works Documentation Newsletter
  • Advertisers
    ADVERTISERS
    Advertisers Offering Top Sites
  • Resources
    RESOURCES
    Ad Unit Demos Blog & News Press Releases FAQ Case Studies
  • NitroDex
Log in

Ad Publishers

  • Helpful Integration Tools and Common Issues
  • Google MCM – What is it?
  • Installing the ad script on your page
  • Setting up your ads.txt file
  • Creating an ad placement
  • Special Ad Formats
  • Detecting ad-blocking users
  • Creating a Playlist and Adding Content

Data and Privacy

  • Passing Hashed Emails
  • Creating a link for the user to manage their consents
  • US Privacy law compliance steps
  • Support for Google Analytics and Consent Mode
  • Adding custom consents or disclosures

Dashboard and Best Practices

  • Ad Layout Best Practices
  • Nitro Glossary
  • NitroPay
  • Docs
  • Launching the login/registration screen

Launching the login/registration screen

With the object reference to Auth available from the previous article, you can now use it to launch the screen where your users login, register or recover their password. In the following example, the code is executed after the user clicks the login button.

<button id="loginBtn">Login</button>

<script type="text/javascript">
document.getElementById('loginBtn').addEventListener('click', function(e) {
  auth.authorize().then(
    function() {}, // success
    function() {} // cancel or failure
  );
});
</script>

If you see an error message in the popup window, this is the first place the Allowed Origins you configured in the client are checked. Make sure you’ve allowed the current host name you’re testing on.

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on January 25, 2023
We use cookies to improve your experience and increase the relevancy of content when using Nitro. Our cookies are used for analytics, optimization, and advertising operations. Learn more.Got it
  • Publishers

    • How it works
    • Documentation
    • Newsletter
  • Advertisers

    • Advertisers Offering
    • Top Sites
  • Resources

    • Ad Unit Demos
    • Blog & News
    • Press Releases
    • FAQ
    • Case Studies
  • Companions

    • Overwolf
    • CurseForge
    • Tebex
  • Nitrodex

© Overwolf. All rights reserved.
  • Terms of Service
  • Privacy Policy