-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9961647
commit 03e07f1
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
<img src="https://docs.momentohq.com/img/logo.svg" alt="logo" width="400"/> | ||
|
||
# Disposable Tokens Example | ||
|
||
This example program demonstrates how to generate disposable Momento auth tokens. | ||
|
||
# Usage | ||
|
||
The program assumes that your Momento auth token is available in the `MOMENTO_AUTH_TOKEN` environment variable: | ||
|
||
```bash | ||
MOMENTO_AUTH_TOKEN=<YOUR_AUTH_TOKEN> dotnet run | ||
``` | ||
|
||
The example generates a disposable expiring auth token using the enumerated permissions and expiry defined in the program and prints its attributes to the console. |