🎨 Replaced empty interfaces to any
This commit is contained in:
parent
5f05cef767
commit
fb93202373
|
@ -127,7 +127,7 @@ func (cs ConfigServer) GetAddress() string {
|
||||||
|
|
||||||
// GetRootURL returns generated root URL from template RootURL.
|
// GetRootURL returns generated root URL from template RootURL.
|
||||||
func (cs ConfigServer) GetRootURL() string {
|
func (cs ConfigServer) GetRootURL() string {
|
||||||
return fasttemplate.ExecuteString(cs.RootURL, `{{`, `}}`, map[string]interface{}{
|
return fasttemplate.ExecuteString(cs.RootURL, `{{`, `}}`, map[string]any{
|
||||||
"domain": cs.Domain,
|
"domain": cs.Domain,
|
||||||
"host": cs.Host,
|
"host": cs.Host,
|
||||||
"port": cs.Port,
|
"port": cs.Port,
|
||||||
|
|
|
@ -71,7 +71,7 @@ func NewToken(opts NewTokenOptions) (*Token, error) {
|
||||||
|
|
||||||
tkn := jwt.New()
|
tkn := jwt.New()
|
||||||
|
|
||||||
for key, val := range map[string]interface{}{
|
for key, val := range map[string]any{
|
||||||
"nonce": nonce,
|
"nonce": nonce,
|
||||||
"scope": opts.Scope,
|
"scope": opts.Scope,
|
||||||
jwt.IssuedAtKey: now,
|
jwt.IssuedAtKey: now,
|
||||||
|
@ -134,7 +134,7 @@ func TestToken(tb testing.TB) *Token {
|
||||||
ScopeEmail,
|
ScopeEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
for key, val := range map[string]interface{}{
|
for key, val := range map[string]any{
|
||||||
// NOTE(toby3d): required
|
// NOTE(toby3d): required
|
||||||
jwt.IssuerKey: cid.String(),
|
jwt.IssuerKey: cid.String(),
|
||||||
jwt.SubjectKey: me.String(),
|
jwt.SubjectKey: me.String(),
|
||||||
|
|
Loading…
Reference in New Issue