~bigbes/core-go

ref: bf4fe19c01bd70c57382abd53cd016706c6354a0 core-go/cmd/token/main.go -rw-r--r-- 298 bytes
bf4fe19c — наб email: EnqueueStd: set Content-Type with charset=UTF-8 instead of just text/plain 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"fmt"
	"os"

	"git.sr.ht/~sircmpwn/core-go/auth"
	"git.sr.ht/~sircmpwn/core-go/config"
	"git.sr.ht/~sircmpwn/core-go/crypto"
)

func main() {
	conf := config.LoadConfig(":1111")
	crypto.InitCrypto(conf)
	tok := auth.DecodeBearerToken(os.Args[1])
	fmt.Printf("%+v\n", tok)
}