Documentation ¶
Index ¶
- Constants
- type Service
- func (s *Service) Authenticate(_ context.Context, _ *connect.Request[v1.Empty]) (*connect.Response[v1.H160], error)
- func (s *Service) Nonce(_ context.Context, _ *connect.Request[v1.Empty]) (*connect.Response[v1.NonceResponse], error)
- func (s *Service) Verify(_ context.Context, req *connect.Request[v1.VerifyRequest]) (*connect.Response[v1.H160], error)
Constants ¶
View Source
const ( AuthDomain = "opensea.io" AuthURI = "https://opensea.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service holds state for the auth.Service.
func (*Service) Authenticate ¶
func (s *Service) Authenticate(_ context.Context, _ *connect.Request[v1.Empty]) ( *connect.Response[v1.H160], error, )
Authenticate checks if a given connection is authenticated, and returns the address which is authenticated for the nonce cookie.
Click to show internal directories.
Click to hide internal directories.