MCPcopy Index your code
hub / github.com/rilldata/rill / InsertDeviceAuthCode

Method InsertDeviceAuthCode

admin/database/database.go:214–214  ·  view source on GitHub ↗
(ctx context.Context, deviceCode, userCode, clientID string, expiresOn time.Time)

Source from the content-addressed store, hash-verified

212 FindDeviceAuthCodeByDeviceCode(ctx context.Context, deviceCode string) (*DeviceAuthCode, error)
213 FindPendingDeviceAuthCodeByUserCode(ctx context.Context, userCode string) (*DeviceAuthCode, error)
214 InsertDeviceAuthCode(ctx context.Context, deviceCode, userCode, clientID string, expiresOn time.Time) (*DeviceAuthCode, error)
215 DeleteDeviceAuthCode(ctx context.Context, deviceCode string) error
216 UpdateDeviceAuthCode(ctx context.Context, id, userID string, state DeviceAuthCodeState) error
217 DeleteExpiredDeviceAuthCodes(ctx context.Context, retention time.Duration) error

Callers 1

IssueDeviceAuthCodeMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected