mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-12 03:48:34 +00:00
feat: improve login flow
This commit is contained in:
@ -121,7 +121,7 @@ func (c *Client) UpdateUser() (user *User, err error) {
|
||||
return user, err
|
||||
}
|
||||
|
||||
// CurrentUser return currently active user or user will be updated.
|
||||
// CurrentUser returns currently active user or user will be updated.
|
||||
func (c *Client) CurrentUser() (user *User, err error) {
|
||||
if c.user != nil && len(c.addresses) != 0 {
|
||||
user = c.user
|
||||
|
||||
Reference in New Issue
Block a user