fix(auth): fix typos

Co-Authored-By: chiptus <chiptus@users.noreply.github.com>
pull/2749/head
Anthony Lapenna 2019-01-16 16:53:24 +02:00 committed by GitHub
parent fc8938e871
commit c650fe56c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
var user = {};
service.init = init;
service.oAuthLogin = oAuthLogin;
service.OAuthLogin = OAuthLogin;
service.login = login;
service.logout = logout;
service.isAuthenticated = isAuthenticated;
@ -22,7 +22,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
}
}
function oAuthLogin(code) {
function OAuthLogin(code) {
return OAuth.login({ code: code }).$promise
.then(function onLoginSuccess(response) {
return setUser(response.jwt);