mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
394 B
TypeScript
11 lines
394 B
TypeScript
import * as angular from 'angular';
|
|
|
|
angular.module('angular-oauth2-test', ['angular-oauth2'])
|
|
.config(['OAuthProvider', (OAuthProvider: angular.oauth2.OAuthProvider) => {
|
|
OAuthProvider.configure({
|
|
baseUrl: 'https://api.website.com',
|
|
clientId: 'CLIENT_ID',
|
|
clientSecret: 'CLIENT_SECRET' // optional
|
|
});
|
|
}]);
|