🎨 Replaced empty interfaces to any

develop
Maxim Lebedev 5 months ago
parent 5f05cef767
commit fb93202373
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5

@ -127,7 +127,7 @@ func (cs ConfigServer) GetAddress() string {
// GetRootURL returns generated root URL from template RootURL.
func (cs ConfigServer) GetRootURL() string {
return fasttemplate.ExecuteString(cs.RootURL, `{{`, `}}`, map[string]interface{}{
return fasttemplate.ExecuteString(cs.RootURL, `{{`, `}}`, map[string]any{
"domain": cs.Domain,
"host": cs.Host,
"port": cs.Port,

@ -71,7 +71,7 @@ func NewToken(opts NewTokenOptions) (*Token, error) {
tkn := jwt.New()
for key, val := range map[string]interface{}{
for key, val := range map[string]any{
"nonce": nonce,
"scope": opts.Scope,
jwt.IssuedAtKey: now,
@ -134,7 +134,7 @@ func TestToken(tb testing.TB) *Token {
ScopeEmail,
}
for key, val := range map[string]interface{}{
for key, val := range map[string]any{
// NOTE(toby3d): required
jwt.IssuerKey: cid.String(),
jwt.SubjectKey: me.String(),

Loading…
Cancel
Save