mediamtx/internal/auth/credentials.go
Alessandro Ros f97213ae6e
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
support passing JWTs through the password field (#4516)
This is safer than passing JWTs through query parameters, unfortunately support is limited.
2025-05-10 22:54:24 +02:00

8 lines
154 B
Go

package auth
// Credentials is a set of credentials (either user+pass or a token).
type Credentials struct {
User string
Pass string
Token string
}