extract Google logic into separate adapter
All checks were successful
CI / Maven unit tests (push) Successful in 13s
CI / Build and push images (push) Has been skipped
CI / Deploy to server (push) Has been skipped

This commit is contained in:
2026-10-04 14:54:23 +01:00
parent 05361409b2
commit cbb8c2195f
5 changed files with 81 additions and 50 deletions

View File

@@ -0,0 +1,9 @@
package com.ddf.vodsystem.dto;
public record GoogleUser(
String googleId,
String email,
String name,
String profilePictureUrl
) {
}

View File

@@ -15,9 +15,17 @@ public record AuthProperties (
@NotBlank @Size(min = 32) String jwtSecret,
@Valid @NotNull Expiration expiration
) {
/**
*
* @param jwt Duration object as to the length of the access token
* @param refreshToken Duration of refresh token
* @param tokenFamily Duration of token family
*/
public record Expiration (
@NotNull Duration jwt,
@NotNull Duration refreshToken,
@NotNull Duration tokenFamily
@NotNull Duration tokenFamily,
@NotNull Duration gracePeriod
) {}
}