Razer ID login for Apps is a fast and convenient way to streamline your Apps to have more signed-in users across various platforms. It is available for the iOS, Android, Web and the Razer Phone.
Razer ID Login is used in the provision of the following experiences:
Razer ID provides a quick and convenient way to allow user to go onboard your Apps without the need to set a password. User can log into your App with a single click on the supported platforms. With this API, you will also be able to reach the user through their verified email or phone.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Add gradle dependencies
build.gradle
repositories {
maven {
url 'https://mymavenrepo.com/repo/fQV6PCXrR9Q1vFXRpFex/'
credentials {
username 'myMavenRepo'
password 'razer_read'
}
}
}
dependencies {
...
implementation 'com.razer.android:auth-sdk:1.2.0'
...
}
- Create a Razer app in the Razer Developer Portal
- Clone the sample project.
- Replace the RAZER_CLIENT_ID & RAZER_Client_SECRET in Constants.java file with the ID provided by Razer Developer Portal.
- Replace RAZER_CLIENT_REDIRECT_URL with your redirect URL. Constants.java
package com.razer.sample;
public class Constants {
public static final String RAZER_CLIENT_ID = "455d83de56b1fc01dd6c4293f50b9fdc692db0f2";//please visit Razer's Developer portal for your id
public static final String RAZER_CLIENT_SECRET = "1ee91cd6be76f8ee80a94d1850d6ed5d5966b66b";
public static final String RAZER_CLIENT_REDIRECT_URL = "http://34.205.156.206/callback";//please visit Razer's Developer portal
public static final String SERIALIZED_TOKEN_FILE_NAME = "razertoken";
}