<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jayant Raj Singh</title>
    <description>The latest articles on DEV Community by Jayant Raj Singh (@webjayant).</description>
    <link>https://dev.to/webjayant</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F62840%2F65170f4c-df7b-44bb-a919-ca548ab28574.jpeg</url>
      <title>DEV Community: Jayant Raj Singh</title>
      <link>https://dev.to/webjayant</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/webjayant"/>
    <language>en</language>
    <item>
      <title>I built a fake Google login because my MVP demo could not wait for the OAuth console</title>
      <dc:creator>Jayant Raj Singh</dc:creator>
      <pubDate>Sat, 16 May 2026 09:02:35 +0000</pubDate>
      <link>https://dev.to/webjayant/i-built-a-fake-google-login-because-my-mvp-demo-could-not-wait-for-the-oauth-console-3mjc</link>
      <guid>https://dev.to/webjayant/i-built-a-fake-google-login-because-my-mvp-demo-could-not-wait-for-the-oauth-console-3mjc</guid>
      <description>&lt;p&gt;I did not set out to build an identity product.&lt;/p&gt;

&lt;p&gt;I set out to ship a thing with a login button, show it to someone, and get a reaction. You know the vibe: scaffold the app on a Saturday, wire up "Sign in with Google" because every boilerplate does, paste the env vars, run it once, record a Loom, send the link.&lt;/p&gt;

&lt;p&gt;Then I spent the rest of the afternoon in the wrong console.&lt;/p&gt;

&lt;h2&gt;
  
  
  The demo was tomorrow. The product was not the blocker.
&lt;/h2&gt;

&lt;p&gt;The UI was there. The callback route existed. My agent (or past me) had already dropped in Auth.js or whatever the stack wanted. On paper I was one env block away from done.&lt;/p&gt;

&lt;p&gt;In practice I was:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating OAuth clients in Google Cloud (again, because last time was another side project)&lt;/li&gt;
&lt;li&gt;Fighting redirect URI rules&lt;/li&gt;
&lt;li&gt;Doing the same dance for GitHub because the MVP had two buttons and looked "real"&lt;/li&gt;
&lt;li&gt;Re-reading docs about discovery URLs while the thing I actually cared about, onboarding, settings, the core loop, sat there mocking me&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that was building my MVP. It was &lt;strong&gt;infrastructure tax&lt;/strong&gt; I had to pay before I could even &lt;strong&gt;pretend&lt;/strong&gt; to be a user in my own app.&lt;/p&gt;

&lt;p&gt;If you are an MVP builder or a vibe coder, you have felt this. The energy is in the flow you want to show. The drag is in proving to a giant IdP that your localhost is allowed to exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually needed
&lt;/h2&gt;

&lt;p&gt;Not a better auth platform. Not enterprise SSO.&lt;/p&gt;

&lt;p&gt;I needed to &lt;strong&gt;click login, land back in my app, see a name and email, and move on&lt;/strong&gt; so I could:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Test the post-login experience&lt;/li&gt;
&lt;li&gt;Demo to a friend, cofounder, or early user without saying "ignore auth for now"&lt;/li&gt;
&lt;li&gt;Iterate on redirect URLs and session handling without opening three vendor dashboards&lt;/li&gt;
&lt;li&gt;Feel like the MVP was real enough to judge, even when I had not earned production OAuth yet&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is a different job than "run authentication in production." It is &lt;strong&gt;make the social login path believable for dev, testing, and demos&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The moment I snapped
&lt;/h2&gt;

&lt;p&gt;The breaking point was small and embarrassing.&lt;/p&gt;

&lt;p&gt;I had a call in the morning. I wanted to show: sign in, land on dashboard, do the one thing my app does. The night before, Google OAuth started returning &lt;code&gt;redirect_uri_mismatch&lt;/code&gt; because I had switched from port 3000 to 3001 after a template update. Fine. Fixable. But I was fixing &lt;strong&gt;their&lt;/strong&gt; rules instead of &lt;strong&gt;my&lt;/strong&gt; product.&lt;/p&gt;

&lt;p&gt;I remember thinking: I am not blocked on product ideas. I am blocked on being a part-time admin for companies I do not work for yet.&lt;/p&gt;

&lt;p&gt;So I did what a lot of us do when the tool we need does not exist. I hacked something local. Then I kept using it. Then it became &lt;strong&gt;dummyoauth&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built dummyoauth (and what it is not)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;dummyoauth&lt;/strong&gt; is a mock OAuth/OIDC server for &lt;strong&gt;development and test&lt;/strong&gt;. It stands in for Google, GitHub, Facebook, Microsoft, Cognito-shaped flows, and a plain OIDC profile, so your app talks to URLs that feel like the real providers while you are building.&lt;/p&gt;

&lt;p&gt;I built it because I was tired of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Losing a whole evening to consoles when I only wanted to test "what happens after login"&lt;/li&gt;
&lt;li&gt;Treating every demo like a production launch checklist&lt;/li&gt;
&lt;li&gt;Having "we will hook up real auth later" mean my MVP never felt finished in anyone else's hands&lt;/li&gt;
&lt;li&gt;Maintaining separate mental models for "dev auth" vs "real auth" and shipping bugs when I finally switched&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I did &lt;strong&gt;not&lt;/strong&gt; build it to replace Clerk, Auth0, Cognito, or your production IdP. It is the stand-in you use while the MVP is still finding its shape.&lt;/p&gt;

&lt;p&gt;The whole point is &lt;strong&gt;prototype with something that behaves like social login, then swap credentials when you are ready for the real apps&lt;/strong&gt;. Same code path. Different env.&lt;/p&gt;

&lt;h2&gt;
  
  
  If this sounds like your week
&lt;/h2&gt;

&lt;p&gt;You might be me if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can ship UI in a day but social login steals the week&lt;/li&gt;
&lt;li&gt;Your demo script includes "pretend you're logged in" and you hate saying it&lt;/li&gt;
&lt;li&gt;You have three sign-in buttons and three consoles staring at you&lt;/li&gt;
&lt;li&gt;You are vibe-coding fast and keep getting slowed down by work that does not show up in the recording&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I made dummyoauth for that person. Past me. Probably you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it lives
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Try it out at: dummyoauth.com&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are building an MVP right now, I am curious: what broke your last demo, redirects, test users, or just never getting around to the consoles? Reply and tell me. I have been there.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>sideprojects</category>
      <category>startup</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Please Help me with this weird issue.</title>
      <dc:creator>Jayant Raj Singh</dc:creator>
      <pubDate>Mon, 19 Jun 2023 05:27:19 +0000</pubDate>
      <link>https://dev.to/webjayant/please-help-me-with-this-weird-issue-3efm</link>
      <guid>https://dev.to/webjayant/please-help-me-with-this-weird-issue-3efm</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10iur5ep9hf8zoy3mj9y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10iur5ep9hf8zoy3mj9y.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am facing this issue where inline svg is not rendering in wordpress admin panel.&lt;br&gt;
It is only happening in the admin panel.&lt;/p&gt;

&lt;p&gt;Tried solutions:&lt;br&gt;
every svg have the height and width set, tried setting is manually but no difference.&lt;/p&gt;

&lt;p&gt;Notes:&lt;br&gt;
Wordpress is deployed to ec2 in docker and is being routed through apache2 server.&lt;/p&gt;

</description>
      <category>help</category>
      <category>wordpress</category>
      <category>html</category>
    </item>
    <item>
      <title>Problem with google cloud function</title>
      <dc:creator>Jayant Raj Singh</dc:creator>
      <pubDate>Sat, 31 Oct 2020 12:26:39 +0000</pubDate>
      <link>https://dev.to/webjayant/problem-with-google-cloud-function-4gom</link>
      <guid>https://dev.to/webjayant/problem-with-google-cloud-function-4gom</guid>
      <description>&lt;p&gt;I have a cloud function that I am using as a webhook.&lt;br&gt;
Whenever it is receiving something in Hindi it changes it to question Marks '?'.&lt;br&gt;
I've tested it in my local system, where it works fine. &lt;/p&gt;

</description>
      <category>help</category>
      <category>googlecloud</category>
    </item>
    <item>
      <title>My website</title>
      <dc:creator>Jayant Raj Singh</dc:creator>
      <pubDate>Mon, 31 Aug 2020 13:37:57 +0000</pubDate>
      <link>https://dev.to/webjayant/my-website-7d4</link>
      <guid>https://dev.to/webjayant/my-website-7d4</guid>
      <description>&lt;p&gt;So,&lt;/p&gt;

&lt;p&gt;I have finally launched my very-own website.&lt;br&gt;
Please visit &lt;a href="https://webjayant.com" rel="noopener noreferrer"&gt;webjayant&lt;/a&gt;&lt;br&gt;
and my first blog post &lt;a href="https://webjayant.com/blog/what-is-jamstack" rel="noopener noreferrer"&gt;What is JAMStack?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Suggestions welcome&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>I am not able to understand 'factory'</title>
      <dc:creator>Jayant Raj Singh</dc:creator>
      <pubDate>Wed, 19 Dec 2018 05:44:24 +0000</pubDate>
      <link>https://dev.to/webjayant/i-am-not-able-to-understand-factory-39a6</link>
      <guid>https://dev.to/webjayant/i-am-not-able-to-understand-factory-39a6</guid>
      <description>&lt;p&gt;A few days ago I came across the following code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;jQuery&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="nx"&gt;define&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;function&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;define&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;amd&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// AMD (Register as an anonymous module)&lt;/span&gt;
        &lt;span class="nf"&gt;define&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;jquery&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="nx"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;object&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Node/CommonJS&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;jQuery&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;jquery&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
        &lt;span class="nx"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jQuery&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Browser globals&lt;/span&gt;
        &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;_OldCookies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Cookies&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Cookies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;jQuery&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;noConflict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Cookies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;_OldCookies&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;};&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Can somebody please explain to me what is 'factory' and how it is being used in the above code.&lt;/p&gt;

&lt;p&gt;I know factory functions are used to create objects but I am not able to understand how it is used here.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(This is my very first post here, so sorry for any mistakes)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Also, How to use emojis on dev.to&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>howto</category>
    </item>
  </channel>
</rss>
