unstopdom

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Internal errors
	ErrInvalidWalletAddress = errors.New("invalid wallet address")
	ErrUnexpectedStatusCode = errors.New("received unexpected status code")
)

Functions

This section is empty.

Types

type Domain

type Domain struct {
	Domain string `json:"domain"`
}

type UnstoppableDomains

type UnstoppableDomains struct {
	*req.Client
	// contains filtered or unexported fields
}

func NewIdentityProvider

func NewIdentityProvider(log *logan.Entry, config *config.UnstoppableDomains) *UnstoppableDomains

func (*UnstoppableDomains) Verify

func (u *UnstoppableDomains) Verify(
	user *data.User, verifyDataRaw []byte,
) (*issuer.IdentityProvidersCredentialSubject, []byte, error)

type UserInfo

type UserInfo struct {
	EIP4361Message   string `json:"eip4361_message"`
	EIP4361Signature string `json:"eip4361_signature"`
	WalletAddress    string `json:"wallet_address"`
	Domain           string `json:"sub"`
}

UserInfo data that is returned by Unstoppable Domains by /userinfo endpoint. It contains more information, but we only need this fields

type VerificationData

type VerificationData struct {
	AccessToken string `json:"access_token"`
}

VerificationData data that is required by Unstoppable Domains to verify a user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL