mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-09-27 03:56:15 +08:00

This is safer than passing JWTs through query parameters, unfortunately support is limited.
9 lines
154 B
Go
9 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
|
|
}
|