class AccessToken implements ExtenderInterface
Methods
Details
at
line 32
AccessToken
type(string $type)
Add a type of access token.
The class decides what its type is called, how long it lasts by default, and whether a site may change that — see `Flarum\Http\AccessToken`. Registering it here is what lets rows of that type be hydrated as the right class, and what puts its lifetime in front of an administrator alongside the types core ships.