Skip to content

Instantly share code, notes, and snippets.

@JosephMoniz
Created May 3, 2015 04:43
Show Gist options
  • Save JosephMoniz/ba84c8db70d91c531c40 to your computer and use it in GitHub Desktop.
Save JosephMoniz/ba84c8db70d91c531c40 to your computer and use it in GitHub Desktop.
An example on how to configure JWT sessions.
val server = PlasmaConduit(
port = 3000,
middleware = List(SessionMiddleware(JWTSessionHandler(JWTSha256, "topsykretz"))),
defaultRoute = MissingController(),
routes = HttpRoutes(
HttpGetMethodRoutes(
HttpPathRoute("/", RootController()),
)
)
)
server.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment