We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3fb0fb commit c6de29aCopy full SHA for c6de29a
deviceauth.go
@@ -74,6 +74,10 @@ func (c *DeviceAuthResponse) UnmarshalJSON(data []byte) error {
74
// DeviceAuth returns a device auth struct which contains a device code
75
// and authorization information provided for users to enter on another device.
76
func (c *Config) DeviceAuth(ctx context.Context, opts ...AuthCodeOption) (*DeviceAuthResponse, error) {
77
+ if c.Endpoint.DeviceAuthURL == "" {
78
+ return nil, fmt.Errorf("endpoint missing DeviceAuthURL")
79
+ }
80
+
81
// https://datatracker.ietf.org/doc/html/rfc8628#section-3.1
82
v := url.Values{
83
"client_id": {c.ClientID},
0 commit comments