yao/openapi/oauth/device.go
Max e19aa4b8df Remove deprecated OAuth interfaces and types
- Deleted the OAuth interface and related types that were previously defined in the `interfaces.go` and `types.go` files, streamlining the codebase.
- Updated the `oauth.go` file to integrate user and client providers directly, enhancing the service's functionality and reducing complexity.
- Refactored the user information retrieval method to utilize the new user provider structure, ensuring compatibility with the updated architecture.
2025-07-17 17:19:22 +08:00

14 lines
408 B
Go

package oauth
import (
"context"
"github.com/yaoapp/yao/openapi/oauth/types"
)
// DeviceAuthorization initiates the device authorization flow
// This is used for devices with limited input capabilities
func (s *Service) DeviceAuthorization(ctx context.Context, clientID string, scope string) (*types.DeviceAuthorizationResponse, error) {
// TODO: Implement device authorization flow
return nil, nil
}