Functions
verify_key
Verify a key
@spec verify_key(binary, map()) :: map()
Verify a key from your users. You only need to send the api key from your user.
Optionally, pass in a second param, a map with the key apiId
which sends the apiId
along.
Request
The key you want to verify.
The API
of the key you want to verify.
Response
Whether or not this key is valid and has passed the ratelimit. If false
you
should not grant access to whatever the user is requesting
If you have set an ownerId
on this key it is returned here. You can use this
to clearly authenticate a user in your system.
This is the meta
data you have set when creating the key.
Example:
Was this page helpful?