infrastructure/Auth/LoginProxy.php
/**
	 * Logs out the user. We revoke access token and refresh token.
	 * Also instruct the client to forget the refresh cookie.
	 */
Logs out the user. We revoke access token and refresh token.
Also instruct the client to forget the refresh cookie.
Logs out the user . We revoke access token and refresh token . Also instruct the client to forget the refresh cookie .
public function logout()
	{
		$accessToken = $this->auth->user()->token();
		$refreshToken = $this->db
			->table('oauth_refresh_tokens')
			->where('access_token_id', $accessToken->id)
			->update([
				'revoked' => true
			]);
		$accessToken->revoke();
	}
public function logout ( ) { $ accessToken = $ this -> auth -> user ( ) -> token ( ) ; $ refreshToken = $ this -> db -> table ( 'oauth_refresh_tokens' ) -> where ( 'access_token_id' , $ accessToken -> id ) -> update ( [ 'revoked' => true ] ) ; $ accessToken -> revoke ( ) ; }
Logs out the user.
Logs out the user .