8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6035a6 commit e118bf3Copy full SHA for e118bf3
example/js/demo.js
@@ -6,9 +6,13 @@ angular.module('demo', ['googleOauth']).
6
config(function(TokenProvider) {
7
// Demo configuration for the "angular-oauth demo" project on Google.
8
// Log in at will!
9
+
10
+ // Sorry about this way of getting a relative URL, powers that be.
11
+ var baseUrl = document.URL.replace('example/demo.html', '');
12
13
TokenProvider.extendConfig({
14
clientId: '191261111313.apps.googleusercontent.com',
- redirectUri: 'http://localhost:9000/src/oauth2callback.html',
15
+ redirectUri: baseUrl + 'src/oauth2callback.html', // allow lunching demo from a mirror
16
scopes: ["https://www.googleapis.com/auth/userinfo.email"]
17
});
18
}).
0 commit comments