NewAuthUserStorage creates a new in-memory user storage for authentication.
()
| 601 | |
| 602 | // NewAuthUserStorage creates a new in-memory user storage for authentication. |
| 603 | func NewAuthUserStorage() AuthUserStorage { |
| 604 | return &authUserStorage{ |
| 605 | lock: &sync.Mutex{}, |
| 606 | users: map[string]AuthUser{}, |
| 607 | } |
| 608 | } |