Refactor the authentication part of mobile exports (#759)

Refactor the auth code into async calls for mobile framework

---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
This commit is contained in:
Zoltan Papp
2023-03-28 09:57:23 +02:00
committed by GitHub
parent 55ebf93815
commit 488d338ce8
2 changed files with 49 additions and 4 deletions

View File

@ -78,7 +78,7 @@ func (c *Client) Run(urlOpener URLOpener) error {
c.ctxCancelLock.Unlock()
auth := NewAuthWithConfig(ctx, cfg)
err = auth.Login(urlOpener)
err = auth.login(urlOpener)
if err != nil {
return err
}