Created
February 25, 2018 15:49
-
-
Save damian-burke/666b3510add0b5e4460aee03eeaf2a78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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