# Prismic sm --develop authentification

**URL:** <https://community.prismic.io/t/prismic-sm-develop-authentification/3294>\
**Category:** Developing with Prismic\
**Created:** [December 20, 2020, 8:44pm UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294 "2020-12-20T20:44:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrice](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/fabrice/32/1420_2.png) [@fabrice](https://community.prismic.io/u/fabrice)\
**Post date:** [December 20, 2020, 8:44pm UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294/1 "2020-12-20T20:44:41Z")

</div>

Hello, when I run prismic sm --develop I receive the following error [slices API]: Unauthorized  
But everything is fine: I run storybook, I have a custom slice... I think there is something wrong with my account ! Any help ?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [December 21, 2020, 10:12am UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294/3 "2020-12-21T10:12:11Z")

</div>

Hell @fabrice,

Welcome to the Prismic Forum.

I see the same issue happened with another user too. Please check this thread, It can be helpful for you:

> [@Unauthorized when running Slice Machine, trying to add my own slices to my CMS](https://community.prismic.io/t/unauthorized-when-running-slice-builder-trying-to-add-my-own-slices-to-my-cms/2634):
>
> Hello all, Getting up to speed with Prismic and Slice machine which looks awesome. I'm now exploring building my own slices. I'm having a few teething issues launching Slice Machine. When running prismic sm --develop I receive the following error [slices API]: Unauthorized Story block is running in another terminal window. I am signed into Prismic CLI and have tried to re-enter my details with no joy (same error as above) Any tips to where I may be going wrong? Thanks Jake

And also we published a troubleshoot guide, here:

> [@Troubleshooting Slice Machine](https://community.prismic.io/t/troubleshooting-slice-machine-slice-builder/3002):
>
> Thanks for installing Slice Machine and contributing to the development of this open source project. Currently, Slice Machine is mostly in beta, with Slice Machine in alpha. So, you might encounter some issues. Here are the most common issues and the solutions. This list is up-to-date as of January 12, 2021. Please feel free to suggest additions. First: Check Your Versions The current working versions are here: slice-machine-ui: [https://www.npmjs.com/package/slice-machine-ui](https://www.npmjs.com/package/slice-machine-ui) prismic-cli: [ht…](https://www.npmjs.com/package/prismic-cli)

Let me know after trying this.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![jake](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/jake/32/5120_2.png) [@jake](https://community.prismic.io/u/jake)\
**Post date:** [December 21, 2020, 12:23pm UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294/4 "2020-12-21T12:23:43Z")

</div>

Is your "apiEndpoint" set in your sm.json?

I've noticed this isn't always configured correctly when adding to an existing Nuxt project.

{  
"libraries": [  
"@/slices"  
],  
"apiEndpoint": "https://{{NAME}}.cdn.prismic.io/api/v2",  
"storybook": "[http://localhost:3003](http://localhost:3003)"  
}

---

<div class="post-metadata">

**Author:** ![fabrice](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/fabrice/32/1420_2.png) [@fabrice](https://community.prismic.io/u/fabrice)\
**Post date:** [December 31, 2020, 12:01pm UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294/5 "2020-12-31T12:01:43Z")

</div>

I think I understood... not sure though !?  
But if it helps someone not smashing his computer:  
As soon as I removed the capital letter I had in my repo name, I could authenticate !!!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [January 4, 2021, 3:03pm UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294/6 "2021-01-04T15:03:36Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 6:07pm UTC](https://community.prismic.io/t/prismic-sm-develop-authentification/3294/7 "2021-12-09T18:07:12Z")

</div>


