Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
chore: update version (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-lemon authored Nov 8, 2023
1 parent 7383544 commit 60d896f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/core/identity.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import {
LemonRefreshTokenResult,
LoggerService,
} from '../helper';
import { AxiosRequestConfig } from 'axios';

export class IdentityService {
private oauthURL: string;
private extraHeader: any = {};
private extraOptions: any = {};
private extraOptions: Omit<AxiosRequestConfig, 'headers'> = {};
private shouldUseXLemonIdentity: boolean = false;

private readonly lemonStorage: LemonStorageService;
Expand Down
4 changes: 3 additions & 1 deletion src/helper/types/lemon-options.type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AxiosRequestConfig } from 'axios';

/**
* default options for initializing service
*/
Expand All @@ -17,7 +19,7 @@ export interface LemonOptions {
/**
* extra options for axios request
*/
extraOptions?: any;
extraOptions?: Omit<AxiosRequestConfig, 'headers'>;
/**
* whether to add the x-lemon-identity to request header
*/
Expand Down

0 comments on commit 60d896f

Please sign in to comment.