Skip to content

Commit e28e14b

Browse files
committed
try to fix #122
1 parent 6743945 commit e28e14b

File tree

5 files changed

+5
-203
lines changed

5 files changed

+5
-203
lines changed

angular-oauth2-oidc/src/oauth-service.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -658,13 +658,15 @@ export class OAuthService
658658
*/
659659
public silentRefresh(params: object = {}): Promise<OAuthEvent> {
660660

661-
let claims = this.getIdentityClaims();
661+
let claims: object = this.getIdentityClaims() || {};
662662

663+
/*
663664
if (!claims) {
664665
throw new Error('cannot perform a silent refresh as the user is not logged in');
665666
}
667+
*/
666668

667-
if (!this.validateUrlForHttps(this.loginUrl)) throw new Error('tokenEndpoint must use Http. Also check property requireHttps.');
669+
if (!this.validateUrlForHttps(this.loginUrl)) throw new Error('tokenEndpoint must use Https. Also check property requireHttps.');
668670

669671
if (typeof document === 'undefined') {
670672
throw new Error('silent refresh is not supported on this platform');

angular-oauth2-oidc/src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-oauth2-oidc",
3-
"version": "2.1.7",
3+
"version": "2.1.8",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/manfredsteyer/angular-oauth2-oidc"

angular-oauth2-oidc/src/token-validation/jwks-validation-handler.js

-130
This file was deleted.

angular-oauth2-oidc/src/token-validation/null-validation-handler.js

-18
This file was deleted.

angular-oauth2-oidc/src/token-validation/validation-handler.js

-52
This file was deleted.

0 commit comments

Comments
 (0)