howood/imagereductor

View on GitHub
application/usecase/tokenusecase.go

Summary

Maintainability
A
0 mins
Test Coverage
package usecase

import (
    "context"

    "github.com/howood/imagereductor/application/actor"
)

type TokenUsecase struct {
}

func (tu TokenUsecase) CreateToken(ctx context.Context, claimname string) string {
    jwtinstance := actor.NewJwtOperator(ctx, claimname, false)
    return jwtinstance.CreateToken()
}