Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 922ba74d authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

fix session

parent 467ebd6e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ class Application extends App implements IBootstrap {
		$userSession = $serverContainer->get(IUserSession::class);
		$session = $serverContainer->get(ISession::class);
		$tokenService = $serverContainer->get(TokenService::class);
		$accessTokenExpiresAt = $this->session->get('oidc_access_token_expires_at');
		$accessTokenExpiresAt = $session->get('oidc_access_token_expires_at');
		$now = time();
		if ($now > $accessTokenExpiresAt) {
			$tokenService->refreshTokens();