An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.3% on proxy.golang.org

proxy.golang.org : github.com/icza/authn

Package authn provides passwordless, email-based user authentication. The flow is the following: The Authenticator automatically manages user identities. When an entry code verification passes, a user identity (User) is created if one does not yet exist for the email. This user identity (UserID) is attached to and returned with all tokens. A user may have multiple emails, and emails can be changed (Authenticator.SetUserEmails()) without affecting the user's identity. A user may have multiple valid tokens (multiple sessions). Authenticator.InvalidateToken() only invalidates the given token. Authenticator.Tokens() may be used to query all valid sessions of a user by a token value, or Authenticator.UserTokens() by user ID. Authenticator uses MongoDB as the persistent store, accessed via the official mongo-go driver.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/icza/authn
License: Apache-2.0
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/icza
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/icza
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...