MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / GetCurrentUser

Method GetCurrentUser

internal/cli/client.go:1016–1019  ·  view source on GitHub ↗

GetCurrentUser returns the authenticated user's profile.

()

Source from the content-addressed store, hash-verified

1014
1015// GetCurrentUser returns the authenticated user's profile.
1016func (c *Client) GetCurrentUser() (*LoginUser, error) {
1017 var result LoginUser
1018 return &result, c.get("/auth/me", &result)
1019}
1020
1021// CheckSession returns the current auth status.
1022func (c *Client) CheckSession() (*SessionResponse, error) {

Callers 3

loginCmdFunction · 0.80
whoamiCmdFunction · 0.80
padInitCmdFunction · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected