Skip to content

Commit 01afbf6

Browse files
author
Andy Buecker
committed
fix(AccessToken): Added token query based on $location.path()
1 parent 87190ea commit 01afbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/oauth-ng.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
4343
* - takes the token from the sessionStorage
4444
*/
4545
service.set = function(){
46-
setTokenFromString($location.hash());
46+
setTokenFromString($location.path().substr(1));
4747

4848
//If hash is present in URL always use it, cuz its coming from oAuth2 provider redirect
4949
if(null === service.token){

0 commit comments

Comments
 (0)