Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2017 06:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
the description for this gist
@module trait GitHub {
val client: GitHubClient
val log: Log
def login(code: String) = {
for {
_ <- log.info(s"Trying to log in with GitHub with code: '$code'")
resp <- client.login(code)
_ <- log.info(s"Registration response for code: '$code' is '$resp'")
} yield resp
}
}
@module trait LoginPersistence {
val log: Log
val db: LoginDatabase
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment