npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

arthera-login

v0.0.2

Published

The `LoginService` provides a comprehensive API for integrating various authentication methods into your Angular application. This reference details the methods available in the `LoginService`.

Readme

Login Service API Reference

The LoginService provides a comprehensive API for integrating various authentication methods into your Angular application. This reference details the methods available in the LoginService.

Properties

  • provider: The JSON RPC provider used for blockchain interactions.
  • wallet: The user's wallet, which can be a Wallet instance or a string representing the address.
  • redirectUrl: The URL to redirect to after login.
  • logoUrl: The URL of the logo to display during the login process.
  • userid: The user's ID, typically obtained from the OAuth provider.

Methods

isLoggedIn()

Checks if the user is currently logged in.

  • Returns: boolean - true if the user is logged in, otherwise false.

afterLogin()

A placeholder for post-login actions. Currently, it does not perform any operations.

setLogoUrl(url: string)

Sets the URL for the logo.

  • Parameters:
    • url: string - The URL of the logo.

setRedirectUrl(url: string | null)

Sets the URL to redirect to after login.

  • Parameters:
    • url: string | null - The redirect URL.

getLogoUrl()

Gets the current logo URL.

  • Returns: Promise<string> - The logo URL.

loginWithMicrosoft(token: string)

Logs in using a Microsoft OAuth token.

  • Parameters:
    • token: string - The OAuth token from Microsoft.

loginWithGithub(code: string)

Logs in using a GitHub OAuth code.

  • Parameters:
    • code: string - The OAuth code from GitHub.

loginWithTwitter(token: string)

Logs in using a Twitter OAuth token.

  • Parameters:
    • token: string - The OAuth token from Twitter.

loginWithGoogle(token: string)

Logs in using a Google OAuth token.

  • Parameters:
    • token: string - The OAuth token from Google.

getAddress()

Retrieves the current wallet address.

  • Returns: Promise<string> - The wallet address.

getProvider()

Gets the current JSON RPC provider.

  • Returns: The JSON RPC provider.

logout()

Logs out the current user, clearing the session and any stored tokens.

continue()

Redirects the user after login based on the redirectUrl.

init(redirectUrl: string, logoUrl: string)

Initializes the login service with a redirect URL and a logo URL.

  • Parameters:
    • redirectUrl: string - The URL to redirect to after login.
    • logoUrl: string - The URL of the logo to display during the login process.

loginWithRedirect()

Performs a direct redirect to a custom login page.

isLoggedInProvider()

Checks if the user is logged in based on the provider.

  • Returns: boolean | string - true if the user is logged in, otherwise false. For Twitter and GitHub, it returns the user ID if present.

This API reference provides a detailed overview of the functionalities offered by the LoginService for integrating authentication into Angular applications.