[MM-28125] einterface/oauthprovide: return parsing errors (#15426)

* einterface/oauthprovide: return parsing errors

* Update app/oauth.go

* reflect review comments

* fix var name error

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Ibrahim Serdar Acikgoz
2020-10-19 18:07:20 +03:00
committed by GitHub
parent 90738de75f
commit c05ee81c9f
5 changed files with 43 additions and 43 deletions

View File

@@ -10,7 +10,7 @@ import (
)
type OauthProvider interface {
GetUserFromJson(data io.Reader) *model.User
GetUserFromJson(data io.Reader) (*model.User, error)
}
var oauthProviders = make(map[string]OauthProvider)