Skip to content

Commit

Permalink
refactor: change casing of IOauth2Options to IOAuth2Options
Browse files Browse the repository at this point in the history
AFFECTS PACKAGES:
@esri/arcgis-rest-auth

BREAKING CHANGE:
change casing of IOauth2Options to IOAuth2Options
  • Loading branch information
jgravois committed Apr 11, 2019
1 parent c0852cb commit 9ffd227
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/arcgis-rest-auth/src/UserSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function defer<T>(): IDeferred<T> {
/**
* Options for static OAuth 2.0 helper methods on `UserSession`.
*/
export interface IOauth2Options {
export interface IOAuth2Options {
/**
* Client ID of your application. Can be obtained by registering an application
* on [ArcGIS for Developers](https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/signing-in-arcgis-online-users/#registering-your-application),
Expand Down Expand Up @@ -239,7 +239,7 @@ export class UserSession implements IAuthenticationManager {
* @browserOnly
*/
/* istanbul ignore next */
public static beginOAuth2(options: IOauth2Options, win: any = window) {
public static beginOAuth2(options: IOAuth2Options, win: any = window) {
const {
portal,
provider,
Expand All @@ -249,7 +249,7 @@ export class UserSession implements IAuthenticationManager {
popup,
state,
locale
}: IOauth2Options = {
}: IOAuth2Options = {
...{
portal: "https://www.arcgis.com/sharing/rest",
provider: "arcgis",
Expand Down Expand Up @@ -320,8 +320,8 @@ export class UserSession implements IAuthenticationManager {
* @browserOnly
*/
/* istanbul ignore next */
public static completeOAuth2(options: IOauth2Options, win: any = window) {
const { portal, clientId }: IOauth2Options = {
public static completeOAuth2(options: IOAuth2Options, win: any = window) {
const { portal, clientId }: IOAuth2Options = {
...{ portal: "https://www.arcgis.com/sharing/rest" },
...options
};
Expand Down Expand Up @@ -398,10 +398,10 @@ export class UserSession implements IAuthenticationManager {
* @nodeOnly
*/
public static authorize(
options: IOauth2Options,
options: IOAuth2Options,
response: http.ServerResponse
) {
const { portal, clientId, duration, redirectUri }: IOauth2Options = {
const { portal, clientId, duration, redirectUri }: IOAuth2Options = {
...{ portal: "https://arcgis.com/sharing/rest", duration: 20160 },
...options
};
Expand All @@ -422,10 +422,10 @@ export class UserSession implements IAuthenticationManager {
* @nodeOnly
*/
public static exchangeAuthorizationCode(
options: IOauth2Options,
options: IOAuth2Options,
authorizationCode: string
): Promise<UserSession> {
const { portal, clientId, redirectUri, refreshTokenTTL }: IOauth2Options = {
const { portal, clientId, redirectUri, refreshTokenTTL }: IOAuth2Options = {
...{
portal: "https://www.arcgis.com/sharing/rest",
refreshTokenTTL: 1440
Expand Down

0 comments on commit 9ffd227

Please sign in to comment.