File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ describe('test onPageLoad() function', () => {
57
57
const queryString = '?state=foo&code=bar'
58
58
const response = await client . onPageLoad ( redirectUri + queryString ) ;
59
59
expect ( response . idTokenClaims ?. sub ) . toBe ( 'login-end' ) ;
60
+ expect ( response . isLoggedIn ) . toBe ( true ) ;
61
+ expect ( response . accessTokenExpiresIn ) . toBe ( 300 ) ;
60
62
} ) ;
61
63
62
64
test ( 'when url contains state and error, /login/end should be called' , async ( ) => {
@@ -75,6 +77,8 @@ describe('test onPageLoad() function', () => {
75
77
const queryString = '?response=eyjwt&state=foo'
76
78
const response = await client . onPageLoad ( redirectUri + queryString ) ;
77
79
expect ( response . idTokenClaims ?. sub ) . toBe ( 'session' ) ;
80
+ expect ( response . isLoggedIn ) . toBe ( true ) ;
81
+ expect ( response . accessTokenExpiresIn ) . toBe ( 300 ) ;
78
82
} ) ;
79
83
80
84
test ( 'when url contains only state, /session should be called' , async ( ) => {
You can’t perform that action at this time.
0 commit comments