mockoauthstate.js 327 B

12345678910111213
  1. module.exports = () => {
  2. return {
  3. generateState: () => 'some-cool-nice-encrytpion',
  4. addToState: () => 'some-cool-nice-encrytpion',
  5. getFromState: (state) => {
  6. if (state === 'state-with-invalid-instance-url') {
  7. return 'http://localhost:3452'
  8. }
  9. return 'http://localhost:3020'
  10. },
  11. }
  12. }