working on auth

This commit is contained in:
2024-11-19 10:40:30 +05:30
parent a2739dbbcd
commit 5954ec2501
13 changed files with 284 additions and 38 deletions

View File

@@ -13,7 +13,7 @@ var opts sqids.Options = sqids.Options{
}
// Encode a slice of IDs into one unique ID
func Encode(ids []uint64) (string, error) {
func Encode(ids ...uint64) (string, error) {
s, err := sqids.New()
if err != nil {
return "", err