Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in AuthTokenManager interface #1959

Closed
yurikuzn opened this issue Apr 5, 2021 · 1 comment
Closed

Change in AuthTokenManager interface #1959

yurikuzn opened this issue Apr 5, 2021 · 1 comment
Assignees
Milestone

Comments

@yurikuzn
Copy link
Contributor

yurikuzn commented Apr 5, 2021

Added void return types.

<?php

namespace Espo\Core\Authentication\AuthToken;

/**
 * Fetches and stores auth tokens.
 */
interface Manager
{
    /**
     * Get an auth token. If does not exist then returns NULL.
     */
    public function get(string $token): ?AuthToken;

    /**
     * Create an auth token and store it.
     */
    public function create(Data $data): AuthToken;

    /**
     * Make an auth token inactive (invalid).
     */
    public function inactivate(AuthToken $authToken): void;

    /**
     * Update a last access date. An implementation can be omitted to avoid a writing operation.
     */
    public function renew(AuthToken $authToken): void;
}
@yurikuzn yurikuzn added change php Pull requests that update Php code labels Apr 5, 2021
@yurikuzn yurikuzn added this to the Version 6.2.0 milestone Apr 5, 2021
@yurikuzn yurikuzn self-assigned this Apr 5, 2021
@yurikuzn
Copy link
Contributor Author

yurikuzn commented Apr 5, 2021

b9c7d10

@yurikuzn yurikuzn closed this as completed Apr 5, 2021
@yurikuzn yurikuzn added back-end and removed php Pull requests that update Php code labels Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant