Teleforge API Reference - v0.1.0
Preparing search index...
bff/src
IdentityAdapter
Interface IdentityAdapter<TAppUser>
interface
IdentityAdapter
<
TAppUser
extends
AppUser
=
AppUser
>
{
create
:
(
user
:
Partial
<
TAppUser
>
)
=>
TAppUser
|
Promise
<
TAppUser
>
;
findByTelegramId
:
(
telegramUserId
:
number
,
)
=>
TAppUser
|
Promise
<
TAppUser
|
null
>
|
null
;
findByUsername
:
(
username
:
string
,
)
=>
TAppUser
|
Promise
<
TAppUser
|
null
>
|
null
;
update
:
(
appUserId
:
string
,
updates
:
Partial
<
TAppUser
>
,
)
=>
TAppUser
|
Promise
<
TAppUser
>
;
}
Type Parameters
TAppUser
extends
AppUser
=
AppUser
Index
Properties
create
find
By
Telegram
Id
find
By
Username
update
Properties
create
create
:
(
user
:
Partial
<
TAppUser
>
)
=>
TAppUser
|
Promise
<
TAppUser
>
find
By
Telegram
Id
findByTelegramId
:
(
telegramUserId
:
number
,
)
=>
TAppUser
|
Promise
<
TAppUser
|
null
>
|
null
find
By
Username
findByUsername
:
(
username
:
string
)
=>
TAppUser
|
Promise
<
TAppUser
|
null
>
|
null
update
update
:
(
appUserId
:
string
,
updates
:
Partial
<
TAppUser
>
,
)
=>
TAppUser
|
Promise
<
TAppUser
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
create
find
By
Telegram
Id
find
By
Username
update
Teleforge API Reference - v0.1.0
Loading...