User Menu

Render a signed-in avatar menu with profile and account actions, powered by an OAuth access token.

Embed snippet

<div id="loginsign-user"
  data-client-id="YOUR_CLIENT_ID"
  data-token="ACCESS_TOKEN">
</div>
<script src="https://loginsign.com/widgets/user.js" defer></script>

Attributes

data-client-id           required  Your application Client ID
data-token               required  OAuth access token for signed-in user
data-theme               optional  auto | light | dark
data-dropdown-position   optional  Menu alignment (default: bottom-right)

Token handling guidance

  • Issue token after successful OAuth code exchange on your backend.
  • Avoid storing long-lived tokens in unsafe client storage.
  • Refresh/rotate tokens according to your security policy.

When to use

  • Top navigation where account actions should be quickly accessible.
  • Apps with account switching or profile management entry points.

Related docs