Skip to content

Instantly share code, notes, and snippets.

@damian-burke
Created February 25, 2018 15:49
Show Gist options
  • Select an option

  • Save damian-burke/666b3510add0b5e4460aee03eeaf2a78 to your computer and use it in GitHub Desktop.

Select an option

Save damian-burke/666b3510add0b5e4460aee03eeaf2a78 to your computer and use it in GitHub Desktop.
class TokenInterceptor: AuthenticationInterceptor(AUTHENTICATION_HEADER) {
// ...
companion object {
const val AUTHENTICATION_HEADER = "Authentication"
const val KEY_USER_TOKEN = "User Token"
const val KEY_APP_TOKEN = "App Token"
const val AUTHENTICATION_USER = "$AUTHENTICATION_HEADER: $KEY_USER_TOKEN"
const val AUTHENTICATION_APP = "$AUTHENTICATION_HEADER: $KEY_APP_TOKEN"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment