Skip to content

Commit

Permalink
fix cdn entry
Browse files Browse the repository at this point in the history
  • Loading branch information
shuowu committed Mar 30, 2022
1 parent 5a0aac8 commit ee92e70
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions lib/entry.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import OktaAuth from './OktaAuth';
import { getProfile } from './myaccount';
import { OktaAuthOptions } from './types';

(OktaAuth as any).prototype.myaccount = {
getProfile: function() {
return getProfile.apply(null, this);
class OktaAuthCDN extends OktaAuth {
myaccount;

constructor(args: OktaAuthOptions) {
super(args);

this.myaccount = {
getProfile: getProfile.bind(null, this)
}
}
};
}

export default OktaAuth;
export default OktaAuthCDN;

0 comments on commit ee92e70

Please sign in to comment.