stuff
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
1b055db238
commit
5ab6ba9705
2 changed files with 5 additions and 1 deletions
|
|
@ -263,8 +263,11 @@ class AuthApiV2 {
|
||||||
// Generate tokens
|
// Generate tokens
|
||||||
final tokens = await _jwtService.generateTokens(user);
|
final tokens = await _jwtService.generateTokens(user);
|
||||||
|
|
||||||
|
// Convert user to DTO and then to JSON
|
||||||
|
final userDto = await user.toDto();
|
||||||
|
|
||||||
return _ok({
|
return _ok({
|
||||||
'user': await user.toDto(),
|
'user': userDto.toJson(),
|
||||||
'accessToken': tokens.accessToken,
|
'accessToken': tokens.accessToken,
|
||||||
'refreshToken': tokens.refreshToken,
|
'refreshToken': tokens.refreshToken,
|
||||||
'expiresIn': tokens.expiresIn,
|
'expiresIn': tokens.expiresIn,
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ const _publicAuthPaths = {
|
||||||
'/auth/oauth/telegram',
|
'/auth/oauth/telegram',
|
||||||
'/auth/telegram/generate-code', // Bot endpoint for generating codes
|
'/auth/telegram/generate-code', // Bot endpoint for generating codes
|
||||||
'/auth/telegram/web-code', // Web app endpoint for creating auth codes
|
'/auth/telegram/web-code', // Web app endpoint for creating auth codes
|
||||||
|
'/auth/telegram/web-app', // Web app endpoint for Telegram Web App authentication
|
||||||
'/auth/telegram/claim-code', // Bot endpoint for claiming web codes
|
'/auth/telegram/claim-code', // Bot endpoint for claiming web codes
|
||||||
'/auth/refresh',
|
'/auth/refresh',
|
||||||
'/admin/auth/request-code', // Admin login code request (public)
|
'/admin/auth/request-code', // Admin login code request (public)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue