Get groups from the JWT tokens if it feature enabled for account

This commit is contained in:
Givi Khojanashvili
2023-06-19 10:03:34 +04:00
parent 042f124702
commit e41072e2fc
8 changed files with 172 additions and 4 deletions
+4
View File
@@ -205,6 +205,10 @@ func restore(file string) (*FileStore, error) {
group.Peers[i] = p.ID
}
}
// TODO: delete this block after migration
if group.Issued == "" {
group.Issued = GroupIssuedAPI
}
}
// detect routes that have Peer.Key as a reference and replace it with ID.