This is a small library for including dependency injected time and id providers
libraryDependencies += "com.github.shafiquejamal" %% "utils" % "0.0.5"
class SomeController @Inject() (
api: API,
override val timeProvider: TimeProvider,
override val jWTAlgorithmProvider: JWTAlgorithmProvider,
override val jWTPublicKeyProvider: JWTPublicKeyProvider
) extends Controller with AuthenticatedActionCreator {
def post = ???
}
Don't forget to bind the dependencies.