🎨 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.
|
||||
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…
Reference in New Issue