extract Google logic into separate adapter
This commit is contained in:
9
src/main/java/com/ddf/vodsystem/dto/GoogleUser.java
Normal file
9
src/main/java/com/ddf/vodsystem/dto/GoogleUser.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package com.ddf.vodsystem.dto;
|
||||
|
||||
public record GoogleUser(
|
||||
String googleId,
|
||||
String email,
|
||||
String name,
|
||||
String profilePictureUrl
|
||||
) {
|
||||
}
|
||||
@@ -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
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user