@Override
    public Optional<PasswordlessAuthenticationToken> findToken(final String username) {
        return Optional.ofNullable(storage.getIfPresent(username))
            .map(this::decodePasswordlessAuthenticationToken);
    }
This is {@link InMemoryPasswordlessTokenRepository}.

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