Search
Preparing search index...
The search index is not available
mangadex-api - v5.0.1
Options
All
Public
Public/Protected
All
Inherited
Menu
mangadex-api - v5.0.1
AuthResolver
Class AuthResolver
Hierarchy
ApiBase
AuthResolver
Index
Constructors
constructor
Properties
agent
options
Methods
login
logout
refresh
check
Token
login
logout
refresh
Constructors
constructor
new
Auth
Resolver
(
__namedParameters
:
{
agent
:
Agent
;
options
:
AgentOptions
}
)
:
AuthResolver
Parameters
__namedParameters:
{
agent
:
Agent
;
options
:
AgentOptions
}
agent
:
Agent
options
:
AgentOptions
Returns
AuthResolver
Properties
agent
agent
:
Agent
options
options
:
AgentOptions
Methods
login
login
(
username
:
string
, password
:
string
)
:
Promise
<
ApiResponse
<
{
token
:
Session
}
>
>
Parameters
username:
string
password:
string
Returns
Promise
<
ApiResponse
<
{
token
:
Session
}
>
>
logout
logout
(
)
:
Promise
<
ApiResponse
<
Record
<
string
,
never
>
>
>
Returns
Promise
<
ApiResponse
<
Record
<
string
,
never
>
>
>
refresh
refresh
(
)
:
Promise
<
ApiResponse
<
{
message
:
string
;
token
:
Session
}
>
>
Returns
Promise
<
ApiResponse
<
{
message
:
string
;
token
:
Session
}
>
>
Static
check
Token
check
Token
(
session
:
Session
)
:
Promise
<
ApiResponse
<
CheckTokenResponse
>
>
Parameters
session:
Session
Returns
Promise
<
ApiResponse
<
CheckTokenResponse
>
>
Static
login
login
(
username
:
string
, password
:
string
)
:
Promise
<
ApiResponse
<
{
token
:
Session
}
>
>
Parameters
username:
string
password:
string
Returns
Promise
<
ApiResponse
<
{
token
:
Session
}
>
>
Static
logout
logout
(
session
:
Session
)
:
Promise
<
ApiResponse
<
Record
<
string
,
never
>
>
>
Parameters
session:
Session
Returns
Promise
<
ApiResponse
<
Record
<
string
,
never
>
>
>
Static
refresh
refresh
(
session
:
Session
)
:
Promise
<
ApiResponse
<
{
message
:
string
;
token
:
Session
}
>
>
Parameters
session:
Session
Returns
Promise
<
ApiResponse
<
{
message
:
string
;
token
:
Session
}
>
>
Exports
Account
Resolver
Agent
Auth
Resolver
constructor
agent
options
login
logout
refresh
check
Token
login
logout
refresh
Chapter
Resolver
Composer
Cover
Art
Resolver
Group
Resolver
Manga
Resolver
Mangadex
User
Resolver
Check
Token
Response
Create
Manga
Options
Get
Cover
Arts
Options
Get
Manga
Feed
Options
Search
Chapter
Options
Search
Group
Options
Search
Manga
Options
Search
Users
Options
Default
Options
Generated using
TypeDoc