Skip to content

Commit 4270e9e

Browse files
CartonPoeteneroniaky
authored andcommitted
Add getter and setter for AngularTokenOptions (#478)
* Add getter and setter for AngularTokenOptions
1 parent a7e5462 commit 4270e9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

projects/angular-token/src/lib/angular-token.service.ts

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ export class AngularTokenService implements CanActivate {
4646
return this.options.apiBase;
4747
}
4848

49+
get tokenOptions(): AngularTokenOptions {
50+
return this.options
51+
}
52+
53+
set tokenOptions(options) {
54+
this.options = (<any>Object).assign(this.options, options);
55+
}
56+
4957
private options: AngularTokenOptions;
5058
private userType: UserType;
5159
private authData: AuthData;

0 commit comments

Comments
 (0)