curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/auth/sign-in \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"success": true,
"accessToken": "<string>",
"refreshToken": "<string>",
"user": {
"id": "<string>",
"foreignId": {},
"role": "<string>",
"email": {},
"name": {},
"username": {},
"avatar": {},
"bio": {},
"metadata": {},
"reputation": {},
"isVerified": {},
"isActive": {},
"lastActive": {},
"suspensions": [
{}
],
"avatarFile": {},
"bannerFile": {},
"authMethods": [
"<string>"
],
"createdAt": "<string>"
}
}Authenticate a user with email and password
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/auth/sign-in \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"success": true,
"accessToken": "<string>",
"refreshToken": "<string>",
"user": {
"id": "<string>",
"foreignId": {},
"role": "<string>",
"email": {},
"name": {},
"username": {},
"avatar": {},
"bio": {},
"metadata": {},
"reputation": {},
"isVerified": {},
"isActive": {},
"lastActive": {},
"suspensions": [
{}
],
"avatarFile": {},
"bannerFile": {},
"authMethods": [
"<string>"
],
"createdAt": "<string>"
}
}true on successful authentication.Show properties
["password", "google"]).User Not Found — 403
{
"error": "User not found.",
"code": "auth/no-user-found"
}
Invalid Credentials — 403
{
"error": "Invalid credentials.",
"code": "auth/invalid-credentials"
}
Wrong Password — 401
{
"error": "Incorrect password.",
"code": "auth/wrong-password"
}
useAuth hook — signInWithEmailAndPassword