user

package
v0.0.0-...-6c8c277 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserClient

func NewUserClient(secret string, client *resty.Client) magic.User

NewUserClient constructor of user client api.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) GetMetadataByIssuer

func (u *Client) GetMetadataByIssuer(issuer string) (*magic.UserInfo, error)

GetMetadataByIssuer returns metadata by issuer.

func (*Client) GetMetadataByPublicAddress

func (u *Client) GetMetadataByPublicAddress(pubAddr string) (*magic.UserInfo, error)

GetMetadataByPublicAddress returns metadata by public address.

func (*Client) GetMetadataByToken

func (u *Client) GetMetadataByToken(didToken string) (*magic.UserInfo, error)

GetMetadataByToken returns metadata by DID token with decoding and validating it.

func (*Client) LogoutByIssuer

func (u *Client) LogoutByIssuer(issuer string) error

LogoutByIssuer logout user from magic.link service by issuer.

func (*Client) LogoutByPublicAddress

func (u *Client) LogoutByPublicAddress(pubAddr string) error

LogoutByPublicAddress logout user from magic.link service by public address.

func (*Client) LogoutByToken

func (u *Client) LogoutByToken(didToken string) error

LogoutByToken logout user from magic.link service by DID token with decoding and validating it.

Jump to

Keyboard shortcuts

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