Streams tenancy (#91)

* fixup streams stuff

* use cache instead of pg in streams

* hash out issuer streams test

* fix compile error
This commit is contained in:
Asim Aslam
2021-05-01 22:34:35 +01:00
committed by GitHub
parent 500acefe47
commit b8877f8312
8 changed files with 87 additions and 82 deletions

View File

@@ -28,8 +28,8 @@ func (e *Otp) Generate(ctx context.Context, req *pb.GenerateRequest, rsp *pb.Gen
key, err := totp.Generate(totp.GenerateOpts{
Issuer: "Micro",
AccountName: req.Id,
Period: 60,
Algorithm: otp.AlgorithmSHA1,
Period: 60,
Algorithm: otp.AlgorithmSHA1,
})
if err != nil {
logger.Error("Failed to generate secret: %v", err)