(config api.AuthMethodAuth0Details)
| 60 | } |
| 61 | |
| 62 | func NewClient(config api.AuthMethodAuth0Details) (*Client, error) { |
| 63 | u, err := url.Parse(config.Domain) |
| 64 | if err != nil { |
| 65 | return nil, err |
| 66 | } |
| 67 | return &Client{config: config, url: *u}, nil |
| 68 | } |
| 69 | |
| 70 | func (c *Client) GetDeviceCode(ctx context.Context, scope string) (DeviceCodeResponse, error) { |
| 71 | type deviceCodeRequest struct { |
no test coverage detected