academy01/auth-token

authentication manager system for php

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/academy01/auth-token

1.1.x-dev 2023-09-05 16:18 UTC

This package is auto-updated.

Last update: 2025-10-16 17:59:52 UTC


README

Simple Authentication Token Manager System.

Installation

just include AuthToken.php into your document. and edit $domain and $salt

include_once "AuthToken.php";

Usage

Generate Token:

  • you can pass the username to this method (optional)
  • If you have already created a session called username, the username will be set automatically and does not need to be set separately.
AuthToken::generate();

Check Token:

  • You must use a username if you used it to Generate a token.
  • this method returns true or false
AuthToken::check();

Delete Token:

AuthToken::delete();