mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-14 18:33:09 -06:00
Fix typos
This commit is contained in:
parent
8a9102ff04
commit
b42e78f5d1
|
|
@ -25,9 +25,9 @@ import (
|
||||||
const (
|
const (
|
||||||
macaroonVersion = macaroon.V2
|
macaroonVersion = macaroon.V2
|
||||||
defaultDuration = 2 * 60
|
defaultDuration = 2 * 60
|
||||||
// UserPrefix is common prefix for every user_id caveat
|
// UserPrefix is a common prefix for every user_id caveat
|
||||||
UserPrefix = "user_id = "
|
UserPrefix = "user_id = "
|
||||||
// TimePrefix is common prefix for every expiry caveat
|
// TimePrefix is a common prefix for every expiry caveat
|
||||||
TimePrefix = "time < "
|
TimePrefix = "time < "
|
||||||
// Gen is a common caveat for every token
|
// Gen is a common caveat for every token
|
||||||
Gen = "gen = 1"
|
Gen = "gen = 1"
|
||||||
|
|
@ -107,7 +107,7 @@ func macaroonError(err error) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// serializeMacaroon takes a macaroon to be serialized.
|
// serializeMacaroon takes a macaroon to be serialized.
|
||||||
// returns it's base64 encoded string, URL safe, which can be sent via web, email, etc.
|
// returns its base64 encoded string, URL safe, which can be sent via web, email, etc.
|
||||||
func serializeMacaroon(m macaroon.Macaroon) (string, error) {
|
func serializeMacaroon(m macaroon.Macaroon) (string, error) {
|
||||||
bin, err := m.MarshalBinary()
|
bin, err := m.MarshalBinary()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue