@Override
    public PasswordlessAuthenticationToken createToken(final PasswordlessUserAccount passwordlessAccount,
                                                       final PasswordlessAuthenticationRequest passwordlessRequest) {
        val properties = new HashMap<>(passwordlessRequest.getProperties());
        properties.put("passwordlessRequestUsername", passwordlessRequest.getUsername());
        return PasswordlessAuthenticationToken.builder()
            .token(tokenGenerator.getNewString())
            .username(passwordlessAccount.getUsername())
            .expirationDate(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(getTokenExpirationInSeconds()))
            .properties(properties)
            .build();
    }
This is {@link BasePasswordlessTokenRepository}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-passwordless-api/src/main/java/org/apereo/cas/impl/token/BasePasswordlessTokenRepository.java