Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
thirdpartypb.UnimplementedThirdPartyServer
// contains filtered or unexported fields
}
func (*Server) GetJwt ¶
func (s *Server) GetJwt(ctx context.Context, req *thirdpartypb.GetJwtRequest) (*thirdpartypb.GetJwtResponse, error)
GetJwt signs a token for a request the app makes to a third party itself, with the server's key for that provider.
For Coinbase, the only provider, the caller must be registered (DENIED), name the server's key (INVALID_API_KEY), ask for one of the requests the apps make (DENIED; see isAllowedCoinbaseRequest, judged before anything of the caller's profile is read) and have a verified phone number (PHONE_VERIFICATION_REQUIRED), and a verified email address too while account.RequireCoinbaseEmailVerification is set (EMAIL_VERIFICATION_REQUIRED; an address linked unverified is not enough).
Click to show internal directories.
Click to hide internal directories.