mirror of https://git.sr.ht/~sircmpwn/core-go
18 lines
298 B
Go
18 lines
298 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"git.sr.ht/~sircmpwn/core-go/config"
|
|
"git.sr.ht/~sircmpwn/core-go/crypto"
|
|
"git.sr.ht/~sircmpwn/core-go/auth"
|
|
)
|
|
|
|
func main() {
|
|
conf := config.LoadConfig(":1111")
|
|
crypto.InitCrypto(conf)
|
|
tok := auth.DecodeBearerToken(os.Args[1])
|
|
fmt.Printf("%+v\n", tok)
|
|
}
|