-
Notifications
You must be signed in to change notification settings - Fork 0
Auth Service
Matthew Pfister edited this page Apr 17, 2020
·
7 revisions
POST Login
POST Signup
POST Confirm Account
POST Logout
POST Resend Confirmation Code
POST Validate
Request Body
{
userName: string;
password: string;
}
Response Headers
set-cookie: string;
x-id-token: string;
x-access-token: string;
Response Body
{
status: number;
data: {
user: {
id: string;
userName: string;
email: string;
firstName?: string;
lastName?: string;
displayName: string;
accountType: USER | ADMIN;
isFirstTimeLogin: boolean;
}
}
}
Request Body
{
email: string;
firstName?: string;
lastName?: string;
password: string;
userName: string;
}
Response Body
{
status: number;
data: {
user: {
accountType: string;
displayName: string;
email: string;
firstName?: string;
id: string;
isFirstTimeLogin?: boolean;
lastName?: string;
userName: string;
}
}
}
Request Body
{
userName: string;
verificationCode: string;
}
Response Body
{
code: number;
data: {
message: string;
}
}
Request Headers
{
Authorization: Bearer Access Token;
}
Response Body
{
code: number;
data: {
message: string;
}
}
Request Body
{
userName: string;
}
Response Body
{
code: number;
data: {
message: string;
}
}
Request Headers
{
Authorization: Bearer Access Token;
}
Response Body
{
status: number;
data: {
user: {
id: string;
userName: string;
email: string;
firstName?: string;
lastName?: string;
displayName: string;
accountType: USER | ADMIN;
isFirstTimeLogin: boolean;
}
}
}