taskcafe/api/cmd/citadelctl/main.go

17 lines
293 B
Go
Raw Normal View History

2020-04-10 04:40:22 +02:00
package main
import (
"fmt"
"github.com/jordanknott/project-citadel/api/router"
"time"
)
func main() {
dur := time.Hour * 24 * 7 * 30
token, err := router.NewAccessTokenCustomExpiration("21345076-6423-4a00-a6bd-cd9f830e2764", dur)
if err != nil {
panic(err)
}
fmt.Println(token)
}