Update examples.

Add in-memory example.
Add missing getRefreshToken function to postgreSQL example.