@GetMapping(path = "/{username}/{deviceId}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Load and get all accounts for the user", parameters = {
        @Parameter(name = "username", required = true, description = "The username to look up"),
        @Parameter(name = "deviceId", required = true, description = "The device id to look up")
    })
    public OneTimeTokenAccount getByUserAndId(
        @PathVariable final String username, @PathVariable final Long deviceId) {
        return repository.getObject().get(username, deviceId);
    }
Get one time token account.

@param username the username
@param deviceId the device id
@return the one time token account
support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/gauth/credential/GoogleAuthenticatorTokenCredentialRepositoryEndpoint.java