Error:(22, 13) value jwtSession is not a member of play.api.mvc.Request[A]
request.jwtSession.getAs[User]("user") match {
^
and I've to manually reload sbt dependencies. This is my build.sbt file
name := "Project"
version := "0.0.1"
inConfig(Compile)(mappings in packageBin <++= Defaults.sourceMappings)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
libraryDependencies ++= {
val postgresV = "9.4.1207"
val nscalaTimeV = "2.6.0"
val playSlickV = "1.1.1"
val slickPgV = "0.10.2"
val slickJodaMapperVersion = "2.1.0"
Seq(
cache,
ws,
specs2 % Test,
"org.postgresql" % "postgresql" % postgresV,
"com.github.tminglei" %% "slick-pg" % slickPgV,
"com.github.tminglei" %% "slick-pg_play-json" % slickPgV,
"com.typesafe.play" %% "play-slick" % playSlickV,
"com.typesafe.play" %% "play-slick-evolutions" % playSlickV,
"com.github.nscala-time" %% "nscala-time" % nscalaTimeV,
"com.github.tototoshi" %% "slick-joda-mapper" % slickJodaMapperVersion,
"de.svenkubiak" % "jBCrypt" % "0.4.1",
"com.pauldijou" %% "jwt-play" % "0.5.1",
"com.amazonaws" % "aws-java-sdk" % "1.10.64"
)
}
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
// Newrelic configuration
enablePlugins(NewRelic)
newrelicVersion := "3.27.0"
newrelicAppName := "Project"
// Enable filters (to use CORS filter
libraryDependencies += filters
Everything seems correct, I've not idea on what could cause that.