fix: update uid encryption key fallback
This commit is contained in:
@@ -100,7 +100,7 @@ func defaultConfig() *Config {
|
||||
},
|
||||
Auth: AuthConfig{
|
||||
SessionKeyPattern: "im:session:token:%s",
|
||||
UIDKey: "la6YsO+bNX/+XIkOqc5Svw==",
|
||||
UIDKey: "dkXxWLwqUNRfYmdXRzOkZw==",
|
||||
RequiredTenantCode: true,
|
||||
RequiredAPIKey: true,
|
||||
},
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
type userID int64
|
||||
|
||||
const defaultUIDKey = "la6YsO+bNX/+XIkOqc5Svw=="
|
||||
const defaultUIDKey = "dkXxWLwqUNRfYmdXRzOkZw=="
|
||||
|
||||
var (
|
||||
uidCodecMu sync.RWMutex
|
||||
|
||||
@@ -24,7 +24,7 @@ func TestUserIDJSONAcceptsIMUserID(t *testing.T) {
|
||||
|
||||
func TestUserIDCodecMatchesIMServer(t *testing.T) {
|
||||
const (
|
||||
publicID = "usrOj2NWDNdlMU"
|
||||
publicID = "usr3rZjh8TD_34"
|
||||
dbID = int64(1574592702383656960)
|
||||
)
|
||||
got, err := parseUserID(publicID)
|
||||
|
||||
Reference in New Issue
Block a user