fork
Configure Feed
Select the types of activity you want to include in your feed.
Live video on the AT Protocol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1package oproxy
2
3import (
4 "fmt"
5
6 "github.com/google/uuid"
7)
8
9func generateRefreshToken() (string, error) {
10 uu, err := uuid.NewV7()
11 if err != nil {
12 return "", err
13 }
14 return fmt.Sprintf("refresh-%s", uu.String()), nil
15}
16
17func generateAuthorizationCode() (string, error) {
18 uu, err := uuid.NewV7()
19 if err != nil {
20 return "", err
21 }
22 return fmt.Sprintf("code-%s", uu.String()), nil
23}