class_docstr: Button that redirects the user to Sign with Hugging Face using OAuth.
class_docstr_tok: ["Button","that","redirects","the","user","to","Sign","with","Hugging","Face","using","OAuth","."]
code: def activate(self):
      # Taken from https://cmgdo.com/external-link-in-gradio-button/
      # Taking `self` as input to check if user is logged in
      # ('self' value will be either "Sign in with Hugging Face" or "Signed in as ...")
      self.click(
          fn=None,
          inputs=[self],
          outputs=None,
          js=_js_open_if_not_logged_in,
      )
  
      self.attach_load_event(self._check_login_status, None)
  
file_path: gradio/gradio/components/login_button.py
imports: from __future__ import annotations
  import warnings
  from typing import Literal
  from gradio_client.documentation import document, set_documentation_group
  from gradio.components import Button
  from gradio.context import Context
  from gradio.routes import Request
label_desc: Use image node_id 2 for calling the LoginButton obj's underlying member method code with example usage: obj.activate() without return types