method
App.CreateAPIKey
func (application *App) CreateAPIKey(
ctx context.Context,
sessionToken,
name string,
expiresAt time.Time,
) (APIKey, error)Mint a revocable API bearer secret for a current session.
Requires AuthConfig.APIKeys. The raw Key is returned once; lists expose APIKeyInfo only.