Skip to content

Callback details are not saved in the repository #7

@Cindy7979

Description

@Cindy7979

Hello.

I got the callback from Xero successfully but the details weren't stored in the cache.

Webfox\Xero\OauthCredentialManager.php

$this->cache->set($this->cacheKey, [
            'token'         => $token->getToken(),
            'refresh_token' => $token->getRefreshToken(),
            'id_token'      => $token->getValues()['id_token'],
            'expires'       => $token->getExpires(),
            'tenant_id'     => $tenantId ?? $this->data('tenant_id')
        ]);

After this

$this->cache->has($this->cacheKey);
This code returns false and there is nothing saved.

I am using Laravel 5.6
The minimum required version is 5.5 so I hope this is not a version issue.
Do I need to set up 'config/cache.php' file? If so, can you please let me know what I need to set up in the file?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions