@@ -90,6 +90,7 @@ func newSessionContainer(config sessmodels.TypeNormalisedInput, session *Session
9090 return nil , err
9191 }
9292 if sessionInformation == nil {
93+ supertokens .LogDebugMessage ("GetSessionDataInDatabaseWithContext: Returning UnauthorizedError because session does not exist anymore" )
9394 return nil , errors.UnauthorizedError {Msg : "session does not exist anymore" }
9495 }
9596 return sessionInformation .SessionDataInDatabase , nil
@@ -101,6 +102,7 @@ func newSessionContainer(config sessmodels.TypeNormalisedInput, session *Session
101102 return err
102103 }
103104 if ! updated {
105+ supertokens .LogDebugMessage ("UpdateSessionDataInDatabaseWithContext: Returning UnauthorizedError because session does not exist anymore" )
104106 return errors.UnauthorizedError {Msg : "session does not exist anymore" }
105107 }
106108 return nil
@@ -112,6 +114,7 @@ func newSessionContainer(config sessmodels.TypeNormalisedInput, session *Session
112114 return 0 , err
113115 }
114116 if sessionInformation == nil {
117+ supertokens .LogDebugMessage ("GetTimeCreatedWithContext: Returning UnauthorizedError because session does not exist anymore" )
115118 return 0 , errors.UnauthorizedError {Msg : "session does not exist anymore" }
116119 }
117120 return sessionInformation .TimeCreated , nil
@@ -123,6 +126,7 @@ func newSessionContainer(config sessmodels.TypeNormalisedInput, session *Session
123126 return 0 , err
124127 }
125128 if sessionInformation == nil {
129+ supertokens .LogDebugMessage ("GetExpiryWithContext: Returning UnauthorizedError because session does not exist anymore" )
126130 return 0 , errors.UnauthorizedError {Msg : "session does not exist anymore" }
127131 }
128132 return sessionInformation .Expiry , nil
@@ -160,6 +164,7 @@ func newSessionContainer(config sessmodels.TypeNormalisedInput, session *Session
160164 response , err := regenerateAccessTokenHelper (* querier , & accessTokenPayload , sessionContainer .GetAccessToken ())
161165
162166 if err != nil {
167+ supertokens .LogDebugMessage ("MergeIntoAccessTokenPayloadWithContext: Returning UnauthorizedError because regenerateAccessTokenHelper returned an error" )
163168 return errors.UnauthorizedError {
164169 Msg : errors .UnauthorizedErrorStr ,
165170 }
0 commit comments