Skip to content

Commit 3c38c14

Browse files
Merge pull request #48 from abuecker/fix/tokenPath
fix(AccessToken): Added token query based on $location.path()
2 parents 87190ea + 01afbf6 commit 3c38c14

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)