Download internal/auth/models.go from shimen/ShinAPI: direct link, hf CLI and curl.
- Browser
- Download file 733 Bytes
-
https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/internal/auth/models.go
- Command line
-
hf download hf://spaces/shimen/ShinAPI/internal/auth/models.go
-
curl -L -o models.go https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/internal/auth/models.go
733 Bytes
| // Package auth provides authentication functionality for various AI service providers. | |
| // It includes interfaces and implementations for token storage and authentication methods. | |
| package auth | |
| // TokenStorage defines the interface for storing authentication tokens. | |
| // Implementations of this interface should provide methods to persist | |
| // authentication tokens to a file system location. | |
| type TokenStorage interface { | |
| // SaveTokenToFile persists authentication tokens to the specified file path. | |
| // | |
| // Parameters: | |
| // - authFilePath: The file path where the authentication tokens should be saved | |
| // | |
| // Returns: | |
| // - error: An error if the save operation fails, nil otherwise | |
| SaveTokenToFile(authFilePath string) error | |
| } | |