- Added Google OAuth controller and service to handle authentication via Google. - Introduced DTOs for Google user and token responses. - Updated AuthService and UsersService traits to support new Google OAuth functionality. - Implemented logic to create a new user if they do not exist in the system after Google authentication. - Enhanced existing user retrieval and JWT generation upon successful login. - Added tests for Google OAuth flow, including login redirection and callback handling for both new and existing users. - Updated environment configuration to include Google OAuth credentials.
13 lines
234 B
TOML
13 lines
234 B
TOML
[package]
|
|
name = "imphnen-entities"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
axum.workspace = true
|
|
serde.workspace = true
|
|
utoipa.workspace = true
|
|
surrealdb.workspace = true
|
|
anyhow.workspace = true
|
|
thiserror.workspace = true
|