AshAuthentication.Strategy.ApiKey.GenerateApiKey (ash_authentication v4.8.6)
View SourceGenerates a random API key for a user.
The API key is generated using a random byte string and a prefix. The prefix is used to generate a key that is compliant with secret scanning. You can use this to set up an endpoint that will automatically revoke leaked tokens, which is an extremely powerful and useful security feature.
See the guide on Github for more information.
Options
:prefix
- The prefix to use for the API key.